Okay, I get you. Usually I use cron jobs to flush server logs after 7 days and error logs after 31 days ( I know this might not be be the most effective way during production).
How you do that? What type of method/function you call in order to flush the logs? That's what I couldn't find expect of ending the logger and waiting for a 'finish' event
Okay, I get you. Usually I use cron jobs to flush server logs after 7 days and error logs after 31 days ( I know this might not be be the most effective way during production).
How you do that? What type of method/function you call in order to flush the logs? That's what I couldn't find expect of ending the logger and waiting for a 'finish' event
Just to be clear, flushing the logs to the disk from the memory, something that usually happens behind the scene within the logger components.
I have tried checking for this, but I could not get it. Incase you find a solution kindly post it here too, so we'll all learn.