Project-Specific Debug Logging Directory Structure
-
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 Nice thanks for sharing!