mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fix: unknown conversion specifier 'Y'
This commit is contained in:
parent
70ad1aa409
commit
fd1c4d7877
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user