Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ghivert/logging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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_COLOR to any string that is not "false" or the empty string in your environment 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

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 62.7%
  • Gleam 37.3%