Skip to content

Simple Erlang's logger's formatters wrapper that adds colours to the messages

License

Notifications You must be signed in to change notification settings

hauleth/logger_colorful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger_colorful

A logger formatter wrapper that ANSI-colours messages. Taste best, when used together with logger_std_h.

Installation

{deps, [logger_colorful]}.

Usage

Configure it either in your sys.config:

[{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.

About

Simple Erlang's logger's formatters wrapper that adds colours to the messages

Topics

Resources

License

Stars

Watchers

Forks

Languages