Skip to content

Commit

Permalink
Document env vars for elasticsearch handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nir0s committed Feb 19, 2018
1 parent 3b97aa0 commit 979dec9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ A POC currently exists for using environment variables to enable certain handler
```bash
export WRYTE_FILE_PATH=PATH_TO_OUTPUT_FILE
export WRYTE_LOGZIO_TOKEN=YOUR_LOGZIO_TOKEN

export WRYTE_ELASTICSEARCH_HOST
export WRYTE_ELASTICSEARCH_PORT (defaults to 9200)
export WRYTE_ELASTICSEARCH_INDEX (defaults to `logs`)
```

Will automatically append `json` formatted handlers to any logger you instantiate.
Expand Down

0 comments on commit 979dec9

Please sign in to comment.