Skip to content
Back to top
View this page

# Logging

class dsviper.Logging

  Bases: `object`

  An interface to emit a message.

  Note: Not directly instantiable.

  LEVEL_ALL = 0
  LEVEL_CRITICAL = 50
  LEVEL_DEBUG = 10
  LEVEL_ERROR = 40
  LEVEL_INFO = 20
  LEVEL_WARNING = 30
  static create(object) → Logging

    Return a new Logging if the Python object responds to the interface or raise.

  critical(message: str) → None

    Log the message for level Critical.

  debug(message: str) → None

    Log the message for level Debug.

  error(message: str) → None

    Log the message for level Error.

  info(message: str) → None

    Log the message for level Info.

  log(level: int, message: str) → None

    Log the message for level.

  warning(message: str) → None

    Log the message for level Warning.