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 30
30
31
31
using namespace OpenSim ;
32
32
33
- static void initializeLogger (spdlog::logger& l) {
33
+ static void initializeLogger (spdlog::logger& l, const char * pattern ) {
34
34
l.set_level (spdlog::level::info);
35
- l.set_pattern (" %v " );
35
+ l.set_pattern (pattern );
36
36
}
37
37
38
38
// cout logger will be initialized during static initialization time
@@ -46,8 +46,8 @@ static std::shared_ptr<spdlog::logger> defaultLogger =
46
46
// this function returns a dummy value so that it can be used in an assignment
47
47
// expression (below) that *must* be executed in-order at static init time
48
48
static bool initializeLogging () {
49
- initializeLogger (*coutLogger);
50
- initializeLogger (*defaultLogger);
49
+ initializeLogger (*coutLogger, " %v " );
50
+ initializeLogger (*defaultLogger, " [%l] %v " );
51
51
spdlog::flush_on (spdlog::level::info);
52
52
return true ;
53
53
}
You can’t perform that action at this time.
0 commit comments