SergiusTheBest / plog

Portable, simple and extensible C++ logging library
MIT License
2.23k stars 389 forks source link

Time based rolling file appender #52

Open davide-prade opened 7 years ago

davide-prade commented 7 years ago

Hi, I needed a time based rolling file appender. I attach the modified files to achieve this functionality.

I ask you to review it and to include in the next version on plog with the all related adjustments.

plog.zip

davide-prade commented 7 years ago

Here an example of initialization: plog::TimedRollingFileAppender<plog::TxtFormatter> fileAppender("test.log", "test.log.%Y%m%d-%H%M");

SergiusTheBest commented 7 years ago

Hi!

I was thinking about such appender. Thank you for participation.

xjw0118 commented 4 years ago

This update has been done?

jwcpp commented 3 years ago

hi friend, it's been 4 years, haven't updated yet? Too lazy, work hard!

wangzcOvO commented 5 months ago

so, my friend. are there any plans to add this feature? @SergiusTheBest

SergiusTheBest commented 5 months ago

@wangzcOvO Yes, it's on the radar.