wolf

Types

pub type LogLevel {
  Error
  Warning
  Info
  Success
  Debug
}

Constructors

  • Error
  • Warning
  • Info
  • Success
  • Debug

Functions

pub fn debug(message: String) -> Nil

Logs a debug message

pub fn error(message: String) -> Nil

Logs an error message

pub fn greet() -> Nil
pub fn info(message: String) -> Nil

Logs an info message

pub fn log(message: String) -> Nil

Logs a message

pub fn log_to_file(
  message: String,
  filepath: String,
  level: LogLevel,
) -> Result(Nil, FileError)

Logs a message to a file

Examples

pub fn main() {
 wolf.log_to_file("log", "log.txt", wolf.Warning)
}
pub fn main() -> Result(Nil, FileError)
pub fn success(message: String) -> Nil

Logs a success message

pub fn warn(message: String) -> Nil

Logs a warning message

Search Document