You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to log into several files. I do it like this
`
#ifndef ELPP_THREAD_SAFE
#define ELPP_THREAD_SAFE
#define ELPP_FORCE_USE_STD_THREAD
#endif
....................................
...........................
CLOG(INFO, loggeId.c_str()) << message;
CLOG(INFO, loggerDataId.c_str()) <<message;
`
As a result, some entries from one log file fall into another and the application crashes (Access violation). What am I doing wrong ?
The text was updated successfully, but these errors were encountered:
YOU SHOULD NOT DEFINE MACRO IN YOUR CODE AS SOME MACROS ARE USED IN SOURCE FILE (easylogging++.cc) AS WELL. THIS IS COMMON CAUSE OF FAILURE
e.g, ELPP_THREAD_SAFE or ELPP_FORCE_USE_STD_THREAD
I need to log into several files. I do it like this
`
#ifndef ELPP_THREAD_SAFE
#define ELPP_THREAD_SAFE
#define ELPP_FORCE_USE_STD_THREAD
#endif
....................................
logger = el::Loggers::getLogger(loggeId);
loggerData = el::Loggers::getLogger(loggerDataId);
...........................
CLOG(INFO, loggeId.c_str()) << message;
CLOG(INFO, loggerDataId.c_str()) <<message;
`
As a result, some entries from one log file fall into another and the application crashes (Access violation). What am I doing wrong ?
The text was updated successfully, but these errors were encountered: