Always write log files to the home folder #12540

- Always log to file using default values. Log to home_folder/.resinsight/logs.  Files are rotated, 5MB per file and maximum of 3 files.
- Add checkbox to system preferences to control file logging
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-06-02 13:01:55 +02:00
1 parent eb284304ff
commit afe2434b63
8 files changed
+38 -72

No files matched your search

+6 -9
View File
@@ -125,15 +125,12 @@ int main( int argc, char* argv[] )
setlocale( LC_NUMERIC, "C" );
// Set up signal handlers
if ( RiaPreferences::current()->loggerTrapSignalAndFlush() )
{
signal( SIGINT, manageSegFailure );
signal( SIGILL, manageSegFailure );
signal( SIGFPE, manageSegFailure );
signal( SIGSEGV, manageSegFailure );
signal( SIGTERM, manageSegFailure );
signal( SIGABRT, manageSegFailure );
}
signal( SIGINT, manageSegFailure );
signal( SIGILL, manageSegFailure );
signal( SIGFPE, manageSegFailure );
signal( SIGSEGV, manageSegFailure );
signal( SIGTERM, manageSegFailure );
signal( SIGABRT, manageSegFailure );
// Handle the command line arguments.
// Todo: Move to a one-shot timer, delaying the execution until we are inside the event loop.