mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
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:
1 parent
eb284304ff
commit
afe2434b63
8 files changed
+38
-72
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user