Skip to content

lpil/logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logging

Configuration for the Erlang logger.

Package Version Hex Docs

gleam add logging
import logging.{Info}

pub fn main() {
  // Run this once at the start of your program
  logging.configure()

  // And get logging!
  logging.log(Info, "Hello, Joe!")
}

Disabling the colored output

When using some logger services, colored output can be superfluous, because they're not processed at all, and appears as real characters. You can set the NO_COLOUR or NO_COLOR environment variable to any string that is not "false" or the empty string to disable the colored output from the logger.

Further documentation can be found at https://hexdocs.pm/logging.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •