Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/logging
https://github.com/lpil/logging
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lpil/logging
- Owner: lpil
- Created: 2024-02-17T15:49:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T14:44:22.000Z (4 months ago)
- Last Synced: 2024-09-15T08:51:22.878Z (about 2 months ago)
- Language: Erlang
- Size: 16.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- 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.
[![Package Version](https://img.shields.io/hexpm/v/logging)](https://hex.pm/packages/logging)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](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 .