gclog/severity

Contains the Severity type and helper methods.

Types

The severity of the event described in a log entry.

pub type Severity {
  Default
  Debug
  Info
  Notice
  Warning
  Error
  Critical
  Alert
  Emergency
}

Constructors

  • Default
  • Debug
  • Info
  • Notice
  • Warning
  • Error
  • Critical
  • Alert
  • Emergency

Functions

pub fn to_int(severity: Severity) -> Int

Convert a severity to a numerical representation.

pub fn to_string(severity: Severity) -> String

Convert a severity to a text representation.

Search Document