mistk.log package

Module contents

Logging module that configures the logger used by a specific component in the MISTK architecture.

mistk.log.config(component, file='/home/tsiedlec/git/streamlinedml-master-git/mistk/mistk/log/../../conf/log_config.json')

Loads the logging configuration file for the component.

Parameters
  • component – The component name to use for the log file name

  • file – The path to the configuration file that will be loaded. Defaults to the file location defined in the ConfigParser property mistk.log.config

mistk.log.get_logger(name=None)

Retrieves the logger associated with the name provided.

Parameters

name – The name of the logger. Defaults to None

Returns

A python logger.

mistk.log.mkdir_p(path)

http://stackoverflow.com/a/600612/190597 (tzot)