Commit fd1c4d78 authored by Alexander Kiselev's avatar Alexander Kiselev

Fix: unknown conversion specifier 'Y'

parent 70ad1aa4
......@@ -31,7 +31,7 @@ int main(int argc, char * argv[])
log4cpp::Appender *appender = new log4cpp::FileAppender("default", "logs/log4cpp-bench-mt.log");
log4cpp::PatternLayout *layout = new log4cpp::PatternLayout();
layout->setConversionPattern("{%Y-%m-%d %H:%M:%S.%l}: %p - %m %n");
layout->setConversionPattern("%d{%Y-%m-%d %H:%M:%S.%l}: %p - %m %n");
appender->setLayout(layout);
log4cpp::Category& root = log4cpp::Category::getRoot();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment