Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
fix: readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Apr 4, 2018
1 parent dbeb1bd commit 569bc3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ To set the logger name that appears at the beginning of every log line and as th
export REACTION_LOGGER_NAME="My Custom Logger"
```

The default log level is `INFO`. You can override that with `REACTION_LOG_LEVEL` (see more about available levels below).

To set the server log level in development, you can add the environment variable before the `reaction` command when starting the app.

```sh
REACTION_LOG_LEVEL="DEBUG" reaction
```

Or export it...
Or export it first...

```sh
export REACTION_LOG_LEVEL="DEBUG"
Expand All @@ -35,8 +37,6 @@ To set it in production (assuming you're using Docker), it would look like this:
docker run -e REACTION_LOG_LEVEL="DEBUG" ...
```

The default value for `REACTION_LOG_LEVEL` is `INFO`.

### Log Levels

When doing custom development and adding more logging to the app, we suggest following the [Bunyan recommendations on log levels](https://github.com/trentm/node-bunyan#levels) and use appropriate levels for your messages.
Expand Down

0 comments on commit 569bc3f

Please sign in to comment.