Record less important events with a lower priority, such as DEBUG. See setLevel and SysLogHandler .
During development, set the level to DEBUG, and as your application matures, set it to more reasonable values, such as INFO or ERROR.
Your application must do something with errors, for example, delete files with the wrong type and / or create missing files; or move the incorrectly configured directories from the job poll to the quarantine location, so your log will not be flooded.
Paulo scardine
source share