readme: update after removing env

This commit is contained in:
Simon Eskildsen 2014-03-07 12:51:29 -05:00
parent 7769e38bec
commit 8fe53025b6
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ init() {
The built in logging formatters are: The built in logging formatters are:
* `logrus.TextFormatter`. Logs the event in colors if stdout is a tty, otherwise * `logrus.TextFormatter`. Logs the event in colors if stdout is a tty, otherwise
without colors. Default for the development environment. <screenshot> without colors.
* `logrus.JSONFormatter`. Default for the production environment. <screnshot> * `logrus.JSONFormatter`. Logs fields as JSON.
You can define your formatter taking an entry. `entry.Data` is a `Fields` type You can define your formatter taking an entry. `entry.Data` is a `Fields` type
which is a `map[string]interface{}` with all your fields as well as the default which is a `map[string]interface{}` with all your fields as well as the default