spdlog
spdlog copied to clipboard
Rotating Daily Logger
I have a need to have a logger which rotates files daily, but keeps only the last X files, as in the case of the rotating file logger.
The use case here is that some of the log files can get really, really huge. The daily logger will create a new file each day, but it doesn't do any cleanup, that I can see. The rotating logger does the cleanup, but will only trigger creating a new file when the size limit is reached.