Skip to content

LogSeverity


File: base/log/log_severity.py

This file declares the log severity level arguments: - INFO - WARNING - ERROR - FATAL

These should be used with the appropriate LOG function from the base/log/log.py file.

Classes:

  • LogSeverity

    An enumeration representing the severity levels for logging.

LogSeverity

Bases: IntEnum

An enumeration representing the severity levels for logging.

Attributes:

  • INFO

    Informational messages that highlight the progress of the application.

  • WARNING

    Potentially harmful situations that should be noted.

  • ERROR

    Error events that might still allow the application to continue running.

  • FATAL

    Severe error events that will lead the application to abort.

Source code in kern_comm_lib/base/log/log_severity.py
class LogSeverity(enum.IntEnum):
  """An enumeration representing the severity levels for logging.

  Attributes:
    INFO: Informational messages that highlight the progress of the application.
    WARNING: Potentially harmful situations that should be noted.
    ERROR: Error events that might still allow the application to continue running.
    FATAL: Severe error events that will lead the application to abort.
  """

  INFO = 0
  WARNING = 1
  ERROR = 2
  FATAL = 3