Open
Description
Problem :
So, my lumberjack logger has rotation based on size (10 MB) and MaxBackups
I am using is 32. I am uploading these log files every hour to my server and I delete the log files which are already uploaded. The problem I am facing is if before triggering my cron job the file count exceeds 32 lumberjack will start deleting the files and I am losing those files (cant upload to the server as lumberjack has deleted them).
Feature Request :
I want a callback function which I can pass while initializing logger, which will get triggered just before deleting the logger file
callback(string filename){
//1. check if this file was uploaded
//2. if not upload
//3. if yes -> continue
}
Thanks !!
Metadata
Assignees
Labels
No labels
Activity