Logging

Logging.

mdacli.logger.setup_logging(logobj, logfile=None, debug=False)[source]

Create a logging environment for a given logobj.

Parameters
  • logobj (logging.Logger) – A logging instance

  • logfile (str) – Name of the log file

  • debug (bool) – If True detailed debug logs inludcing filename and function name are displayed. If False only the message logged from errors, warnings and infos will be displayed.