Open dassie opened 8 years ago
Tried to investigate the problem. And found that by commenting out this line, the crash went away:
This caused the Filename configuration type to be added to the default configuration types list, and so the function above was able to find it.
But I still don't want a default log file. Any recommendations?
Why don't you change default log file at pre-processing time to be /tmp/
may be ? see ELPP_DEFAULT_LOG_FILE
in https://github.com/easylogging/easyloggingpp/blob/master/README.md
And have it go to a location that I can ignore. Not a bad work around. If I have time in the future I will try to figure out more about the crash to try to fix it.
Does this flag work properly for you?
yes this is what changes the underlying file destination (i.e, std::ofstream
)
Duplicate of https://github.com/easylogging/easyloggingpp/issues/327
Also related to https://github.com/easylogging/easyloggingpp/issues/367 and https://github.com/easylogging/easyloggingpp/issues/336
It can by fixed by applying patch #350 and defining ELPP_NO_LOG_TO_FILE
I am getting a crash on start up of my program. It happens on line 3029 inside unsafeGetConfigTypeByRef(). The error message from xtree.h is "map/set iterator not dereferencable".
The relevant part of the code:
The method is being called with level = Global, confMap's size = 0, and confName = "fileStream". The exception is caught but the return statement causes another error. Seems like it's not handling the exception correctly?
Here is the call stack:
I'm compiling on Windows 8.1 with VS 2015 with x64 platform.