Logging
Logging.
- mdacli.logger.setup_logging(logobj, logfile=None, level=30)[source]
Create a logging environment for a given logobj.
- Parameters:
logobj (
logging.Logger
) – A logging instancelogfile (str) – Name of the log file
level (int) – Set the root logger level to the specified level. If for example set to
logging.DEBUG
detailed debug logs inludcing filename and function name are displayed. For :py:obj:`logging.INFO only the message logged from errors, warnings and infos will be displayed.