gleamunison/log

Types

pub type LogEntry {
  LogEntry(
    level: LogLevel,
    message: String,
    context: dict.Dict(String, String),
  )
}

Constructors

pub type LogLevel {
  Debug
  Info
  Warn
  Error
}

Constructors

  • Debug
  • Info
  • Warn
  • Error

Values

pub fn debug(message: String) -> Nil
pub fn debug_context(
  message: String,
  context: dict.Dict(String, String),
) -> Nil
pub fn error(message: String) -> Nil
pub fn error_context(
  message: String,
  context: dict.Dict(String, String),
) -> Nil
pub fn info(message: String) -> Nil
pub fn info_context(
  message: String,
  context: dict.Dict(String, String),
) -> Nil
pub fn warn(message: String) -> Nil
pub fn warn_context(
  message: String,
  context: dict.Dict(String, String),
) -> Nil
Search Document