File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030
3131using namespace OpenSim ;
3232
33- static void initializeLogger (spdlog::logger& l) {
33+ static void initializeLogger (spdlog::logger& l, const char * pattern ) {
3434 l.set_level (spdlog::level::info);
35- l.set_pattern (" %v " );
35+ l.set_pattern (pattern );
3636}
3737
3838// cout logger will be initialized during static initialization time
@@ -46,8 +46,8 @@ static std::shared_ptr<spdlog::logger> defaultLogger =
4646// this function returns a dummy value so that it can be used in an assignment
4747// expression (below) that *must* be executed in-order at static init time
4848static bool initializeLogging () {
49- initializeLogger (*coutLogger);
50- initializeLogger (*defaultLogger);
49+ initializeLogger (*coutLogger, " %v " );
50+ initializeLogger (*defaultLogger, " [%l] %v " );
5151 spdlog::flush_on (spdlog::level::info);
5252 return true ;
5353}
You can’t perform that action at this time.
0 commit comments