Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T17:07:59.000Z (over 4 years ago)
- Last Synced: 2024-04-25T23:04:41.410Z (9 months ago)
- Topics: erlang, log-formatter, logging
- Language: Erlang
- Homepage:
- Size: 8.79 KB
- Stars: 14
- Watchers: 3
- 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).