Pārlūkot izejas kodu

Mention the color atom for the formatter config

pull/233/head
Mattias Jansson pirms 10 gadiem
vecāks
revīzija
f433da014b
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. +11
    -0
      README.md

+ 11
- 0
README.md Parādīt failu

@ -305,6 +305,17 @@ add
To lager's application environment config. If you don't like the default colors, they are
also configurable, see the app.src file for more details.
The output will be colored from the first occurrence of the atom color
in the formatting configuration. For example:
```erlang
{lager_console_backend, [info, {lager_default_formatter, [time, color, " [",severity,"] ", message, "\e[0m\r\n"]}]}
```
This will make the entire log message, except time, colored. The
escape sequence before the line break is needed in order to reset the
color after each log message.
Tracing
-------
Lager supports basic support for redirecting log messages based on log message

Notiek ielāde…
Atcelt
Saglabāt