HISE Logo Forum
    • Categories
    • Register
    • Login

    Project-Specific Debug Logging Directory Structure

    Scheduled Pinned Locked Moved Feature Requests
    2 Posts 2 Posters 34 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan KorneffD
      Dan Korneff
      last edited by

      When you use Settings.setEnableDebugMode(), HISE dumps all debug logs into a global “HISE” folder, which can be a bit messy (especially when juggling multiple projects). It makes it harder to keep logs organized and track down issues for a specific project.

      What’s happening now:
      Logs go to:
      ProjectHandler::getAppDataDirectory(nullptr).getChildFile("Logs/")
      Which means all logs—no matter the project—end up in the same generic spot under AppData. Not ideal if you’re debugging multiple projects.

      What I’m proposing:
      Change DebugLogger::getLogFolder() to use the project’s own AppData directory instead.

      So:

      Each project gets its own log folder (way easier to debug specific issues)

      Presets, logs, and other project stuff stay together

      How it works:
      This would keeps things backwards-compatible:

      In the frontend/plugin: it uses FrontendHandler::getAppDataDirectory() for project-specific logging

      In the HISE editor: it still uses the global method

      Here’s the tweak I made that seems to be working great:

      // DebugLogger.cpp - line 1169:
      #if USE_FRONTEND
      File f = FrontendHandler::getAppDataDirectory().getChildFile("Logs/");
      #else
      File f = ProjectHandler::getAppDataDirectory(nullptr).getChildFile("Logs/");
      #endif
      

      This would make debugging a bit easier on the end user if Logs were kept together with the plugin data.

      Dan Korneff - Producer / Mixer / Audio Nerd

      HISEnbergH 1 Reply Last reply Reply Quote 4
      • HISEnbergH
        HISEnberg @Dan Korneff
        last edited by

        @Dan-Korneff Nice thanks for sharing!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        20

        Online

        1.9k

        Users

        12.2k

        Topics

        106.4k

        Posts