https://github.com/hauleth/logger_colorful
Simple Erlang's logger's formatters wrapper that adds colours to the messages
https://github.com/hauleth/logger_colorful
erlang log-formatter logging
Last synced: 11 months ago
JSON representation
Simple Erlang's logger's formatters wrapper that adds colours to the messages
- Host: GitHub
- URL: https://github.com/hauleth/logger_colorful
- Owner: hauleth
- License: apache-2.0
- Created: 2020-08-08T19:48:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T17:07:59.000Z (almost 6 years ago)
- Last Synced: 2025-06-27T13:44:36.078Z (12 months ago)
- Topics: erlang, log-formatter, logging
- Language: Erlang
- Homepage:
- Size: 8.79 KB
- Stars: 15
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logger_colorful
A logger formatter wrapper that ANSI-colours messages. Taste best, when used
together with `logger_std_h`.
## Installation
```erlang
{deps, [logger_colorful]}.
```
## Usage
Configure it either in your `sys.config`:
```erlang
[{kernel, [{logger,
[{handler, default, logger_std_h,
[{formatter, {logger_colorful_formatter, #{}}}]
}]
}]
}].
```
Or from within application:
```
logger:set_handler_config(default, formatter, {logger_colorful_formatter, #{}}).
```
## License
See [LICENSE](LICENSE).