gabime/spdlog ? reverse-engineered prompt
Reverse engineered prompt
Build me a fast C++ logging library that I can drop into my projects, with both a header only option and a compiled option. I want it to support easy logging to the console with colors, regular files, rotating files, daily files, and a way to plug in custom log outputs later. It should let me set log levels globally or per logger, change the message format, and use a nice formatting style with placeholders for values.
Please include thread safe logging, an optional async mode, and a way to keep recent debug messages in memory so I can dump them later if something goes wrong. It should also be easy to print binary data in a readable hex format. Make it work cleanly with CMake and include a few simple examples and tests so I can see how to use it. If you need to check current docs for best practices, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit