Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

gcc 9.3.0

Options
Boost 1.72.0
C++2a(GNU)
no pedantic
Raw compiler options
simpleLogger.cpp -lboost_log -lboost_log_setup

Author

anonymous

almost 5 years ago

simpleLogger.h
simpleLogger.cpp

$ g++ prog.cc -I/opt/wandbox/boost-1.72.0/gcc-9.3.0/include -std=gnu++2a simpleLogger.cpp -lboost_log -lboost_log_setup
 Odd | 2020-07-30, 09:31:14.909124 [warning] - "this is a warning message"
Even | 2020-07-30, 09:31:14.909672 [error] - "this is an error message"
 Odd | 2020-07-30, 09:31:14.909722 [fatal] - "this is a fatal error message"
Exit Code:
0