Fix: unknown conversion specifier 'Y'

This commit is contained in:
Alexander Kiselev 2018-03-19 20:03:47 +03:00
parent 70ad1aa409
commit fd1c4d7877

View File

@ -31,7 +31,7 @@ int main(int argc, char * argv[])
log4cpp::Appender *appender = new log4cpp::FileAppender("default", "logs/log4cpp-bench-mt.log"); log4cpp::Appender *appender = new log4cpp::FileAppender("default", "logs/log4cpp-bench-mt.log");
log4cpp::PatternLayout *layout = new log4cpp::PatternLayout(); 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); appender->setLayout(layout);
log4cpp::Category& root = log4cpp::Category::getRoot(); log4cpp::Category& root = log4cpp::Category::getRoot();