https://github.com/lpil/logging
  
  
     
    https://github.com/lpil/logging
  
        Last synced: 7 months ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/lpil/logging
 - Owner: lpil
 - Created: 2024-02-17T15:49:19.000Z (over 1 year ago)
 - Default Branch: main
 - Last Pushed: 2024-07-15T14:44:22.000Z (over 1 year ago)
 - Last Synced: 2025-03-24T09:21:12.544Z (8 months ago)
 - Language: Erlang
 - Size: 16.6 KB
 - Stars: 6
 - Watchers: 2
 - Forks: 3
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - Changelog: CHANGELOG.md
 
 
Awesome Lists containing this project
- awesome-gleam - logging - [📚](https://hexdocs.pm/logging/) - Configuration for the Erlang logger (Packages / Logging and Monitoring)
 
README
          # logging
Configuration for the Erlang logger.
[](https://hex.pm/packages/logging)
[](https://hexdocs.pm/logging/)
```sh
gleam add logging
```
```gleam
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 .