daemon.parent_logger module

Configure logging helper function with correct UTC name.

daemon.parent_logger.setup_logging(debug, filename, modname=None)[source]

Can be imported by <my_package> to create a log file for logging <my_package> class output. In this example we use a debug flag set in <my_package> to change the Log Level and filename to set log path. We also use UTC time and force the name in datefmt.