unitelabs.labware.utils.logging

Attributes

  • Name
    F
    Type
    Value

    = typing.TypeVar('F', bound=typing.Callable)

    Description

Functions

  • _log(
      instance : object,
      level : typing.Union[typing.Literal['CRITICAL', 'FATAL', 'ERROR', 'WARN', 'WARNING', 'INFO', 'DEBUG'], Level],
      method_name : str,
      args : dict
    ) -> None

    Parameters

    • Name
      instance
      Type
      object
      Default
      Description

    • Name
      level
      Type
      typing.Union[typing.Literal['CRITICAL', 'FATAL', 'ERROR', 'WARN', 'WARNING', 'INFO', 'DEBUG'], Level]
      Default
      Description

    • Name
      method_name
      Type
      str
      Default
      Description

    • Name
      args
      Type
      dict
      Default
      Description

  • log(level : typing.Union[typing.Literal['CRITICAL', 'FATAL', 'ERROR', 'WARN', 'WARNING', 'INFO', 'DEBUG'], Level]) -> None

    Log the method execution of a class with the provided arguments.

    Parameters

    • Name
      level
      Type
      typing.Union[typing.Literal['CRITICAL', 'FATAL', 'ERROR', 'WARN', 'WARNING', 'INFO', 'DEBUG'], Level]
      Default
      = NOTSET
      Description

      The log level to be used for logging.

Classes

  • Level

    Bases
    enum.IntEnum

    Attributes

    • Name
      CRITICAL
      Type
      Value

      = logging.CRITICAL

      Description

    • Name
      FATAL
      Type
      Value

      = logging.CRITICAL

      Description

    • Name
      ERROR
      Type
      Value

      = logging.ERROR

      Description

    • Name
      WARN
      Type
      Value

      = logging.WARNING

      Description

    • Name
      WARNING
      Type
      Value

      = logging.WARNING

      Description

    • Name
      INFO
      Type
      Value

      = logging.INFO

      Description

    • Name
      DEBUG
      Type
      Value

      = logging.DEBUG

      Description

    • Name
      NOTSET
      Type
      Value

      = logging.NOTSET

      Description

Copyright © 2024