abumq / easyloggingpp

C++ logging library. It is extremely powerful, 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

new folder specified by FILENAME is not created #840

Open yalov opened 1 year ago

yalov commented 1 year ago

In win10, if FILENAME in the global configuration file .conf is a file inside some folder:

FILENAME = "log/name.txt"

and folder doesn't exist yet, then the folder and the file is not created.

if I create folder manually, logging file is created properly.

std::filesystem::create_directory("log");
START_EASYLOGGINGPP(argc, argv);