C++ logging library. It is powerful, supports asynchronous low latency, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
MIT License
3.75k
stars
918
forks
source link
Custom datetime format from config file produces weird output with `_ELPP_UNICODE` defined #222
I've defined _ELPP_STL_LOGGING and _ELPP_UNICODE prior to including easylogging++.h. I'm calling _INITIALIZE_EASYLOGGINGPP right after the include. In main, I first read in the config file via
Thanks for the fast reply. However, I've switched the setup without any effects. However, when I don't define _ELPP_UNICODE, it formats the datetime correctly as expected.
I'm trying to specify a custom datetime format via a config file:
I've defined
_ELPP_STL_LOGGING
and_ELPP_UNICODE
prior to includingeasylogging++.h
. I'm calling_INITIALIZE_EASYLOGGINGPP
right after the include. In main, I first read in the config file viaand call
_START_EASYLOGGINGPP(argc, argv)
afterwards.The output of
LOG(INFO) << "Logger test";
is really, really weird:Not specifying a custom format (or datetime) gives the expected output: