mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Optionally log messages to file (#11059)
* Add spdlog as submodule * Add RiaFileLogger * Control use of file logger from preferences
This commit is contained in:
@@ -103,8 +103,9 @@ void RiaConsoleApplication::initialize()
|
||||
|
||||
RiaApplication::initialize();
|
||||
|
||||
RiaLogging::setLoggerInstance( std::make_unique<RiaStdOutLogger>() );
|
||||
RiaLogging::loggerInstance()->setLevel( int( RiaLogging::logLevelBasedOnPreferences() ) );
|
||||
auto logger = std::make_unique<RiaStdOutLogger>();
|
||||
logger->setLevel( int( RiaLogging::logLevelBasedOnPreferences() ) );
|
||||
RiaLogging::appendLoggerInstance( std::move( logger ) );
|
||||
|
||||
m_socketServer = new RiaSocketServer( this );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user