c++ - Boost logging in 2 files with rotation -


i using boost storing logs in files. fine, rotation works, there possibility rotate logs in 2 files? have 2 files of maximum 250 mb size , if 1 filled, stores logs in other file ad if second filled, first 1 going cleaned , new logs going stored there... , on. possible via boost?


i have see there sink->locked_backend()->set_close_handler(&foo);, isn't there possibility use function delete old log file? (until have not managed find it)

interesting question.

it looks boost devs have decided easier implement separate garbage collect if will

rm -v $(ls -t mylog_*.log | tail -n -2) 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -