Примеры журналирования

This commit is contained in:
2019-10-03 16:47:38 +03:00
parent 746777a822
commit 890272409b
6 changed files with 136 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#include "log/spdlog.hpp"
namespace ML = myx::log;
int main( int argc, char** argv )
{
ML::defaultLogger.enableStdoutSink();
spdlog::register_logger( ML::defaultLogger.logger() );
spdlog::set_default_logger( ML::defaultLogger.logger() );
ML::info( "aaaa" );
ML::trace( "bbbb" );
spdlog::set_pattern( "[%H:%M:%S %z] %v" );
ML::info( "aaaa 111" );
ML::trace( "bbbb 111" );
return( 0 );
}