deepmol.loggers package

Submodules

deepmol.loggers.logger module

class Logger(*args, **kwargs)[source]

Bases: object

close_handlers()[source]

Closes the handlers of the logger.

create_handlers()[source]

Creates the handlers for the logger.

critical(msg: str, **kwargs)[source]

Log a message with severity ‘CRITICAL’ on the root logger.

Parameters:
  • msg (str) – The message to log.

  • kwargs (dict) – The keyword arguments to pass to the logger.

debug(msg: str, **kwargs)[source]

Log a message with severity ‘DEBUG’ on the root logger.

Parameters:
  • msg (str) – The message to log.

  • kwargs (dict) – The keyword arguments to pass to the logger.

static disable()[source]

Disables the logger.

enable()[source]

Enables the logger.

error(msg: str, **kwargs)[source]

Log a message with severity ‘ERROR’ on the root logger.

Parameters:
  • msg (str) – The message to log.

  • kwargs (dict) – The keyword arguments to pass to the logger.

info(msg: str, **kwargs)[source]

Log a message with severity ‘INFO’ on the root logger.

Parameters:
  • msg (str) – The message to log.

  • kwargs (dict) – The keyword arguments to pass to the logger.

set_file_path(file_path: str)[source]

Sets the file path of the logger.

Parameters:

file_path (str) – The path to the log file.

set_level(level: int)[source]

Sets the level of the logger.

Parameters:

level (int) – The level of the logger.

warning(msg: str, **kwargs)[source]

Log a message with severity ‘WARNING’ on the root logger.

Parameters:
  • msg (str) – The message to log.

  • kwargs (dict) – The keyword arguments to pass to the logger.

class SingletonMeta[source]

Bases: type

Singleton metaclass. The singleton lets you ensure that a class has only one instance, while providing a global access point to this instance.

Module contents