When I tweaked the format options in the code to format the date time output, I can use something like this
logging::formatter simpleFormat(expr::format("%1% %2%") %
expr::format_date_time<boost::posix_time::ptime>("TimeStamp", "%H:%M:%S") %
expr::smessage
);
But when I initialize logger with the configuration file, I can specify the format only at the position of the attribute position, and not in their formats.
therefore this line in the write buffer configuration file
Format="[%TimeStamp%]: %Message%"
outputs the result:
[2015-Feb-06 09:32:27.401496]: blah blah blah
I want to reduce the timestamp to something like this
[06.02.2015 09:32:27]
How can this be described in the boost log configuration file, otherwise it cannot be executed?
source
share