phydrus.utils.add_file_handlers

phydrus.utils.add_file_handlers(logger=None, filenames=('info.log', 'errors.log'), levels=(20, 40), maxBytes=10485760, backupCount=20, encoding='utf8', datefmt='%d %H:%M', fmt='%(asctime)s-%(name)s-%(levelname)s-%(message)s')[source]

Method to add file handlers in the logger of Phydrus.

Parameters

logger (logging.Logger) – A Logger-instance. Use ps.logger to initialise the Logging instance that handles all logging throughout Phydrus, including all sub modules and packages.