:py:mod:`cobra.utils.logging` ============================= .. py:module:: cobra.utils.logging Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: cobra.utils.logging.basicConfig cobra.utils.logging.critical cobra.utils.logging.debug cobra.utils.logging.error cobra.utils.logging.flush cobra.utils.logging.getEffectiveLevel cobra.utils.logging.getLogger cobra.utils.logging.info cobra.utils.logging.setLevel cobra.utils.logging.warn cobra.utils.logging.warning Attributes ~~~~~~~~~~ .. autoapisummary:: cobra.utils.logging.CRITICAL cobra.utils.logging.DEBUG cobra.utils.logging.ERROR cobra.utils.logging.INFO cobra.utils.logging.NOTSET cobra.utils.logging.WARNING .. py:data:: CRITICAL .. py:data:: DEBUG .. py:data:: ERROR .. py:data:: INFO .. py:data:: NOTSET .. py:data:: WARNING .. py:function:: basicConfig(filename = None, filemode = 'w', output_format = '%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', datefmt = '%Y-%m-%d %H:%M:%S', level = INFO) Set logging configurations for the runtime environment :param filename: Name to store logs to :param filemode: Mode (append ('a'), overwrite ('w'), ...) :param output_format: Format string for log :param datefmt: Specify time in logs :param level: Logging level for the logger (use logging.DEBUG, WARN, ...) .. py:function:: critical(msg, *args, **kwargs) Log a message with severity 'CRITICAL'. .. py:function:: debug(msg, *args, **kwargs) Log a message with severity 'DEBUG'. .. py:function:: error(msg, *args, **kwargs) Log a message with severity 'ERROR'. .. py:function:: flush() Tell logger to empty output buffers. .. py:function:: getEffectiveLevel() Return the level the logger is set at. .. py:function:: getLogger() Get the custom logger. .. py:function:: info(msg, *args, **kwargs) Log a message with severity 'INFO'. .. py:function:: setLevel(level) Set the logger level. .. py:function:: warn(msg, *args, **kwargs) Deprecated name for warning. .. py:function:: warning(msg, *args, **kwargs) Log a message with severity 'WARNING'.