Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).