Skip to content

Commit 23ec01b

Browse files
committed
add log to path option
1 parent 5309529 commit 23ec01b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ This is the complete complete list of environmental variables that can be set.
4343
| Variable | Required | Default | Description |
4444
| ----------- | ----------- | ----------- | ----------- |
4545
| POSTGRES_CONNECTION | Yes | N/A | Postgres connection string |
46-
| SERVER_LOGGER | No | false | Turn on Fastify's [error logger](https://www.fastify.io/docs/latest/Reference/Logging/) |
46+
| SERVER_LOGGER | No | undefined | Turn on Fastify's [error logger](https://www.fastify.io/docs/latest/Reference/Logging/). Options are `true` (same as `info`), `fatal`, `error`, `warn`, `info`, `debug`, `trace` or `silent`. |
47+
| SERVER_LOGGER_PATH | No | undefined | Log to file instead of console, ex: `/path/to/file` |
4748
| SERVER_HOST | No | 0.0.0.0 | IP to [listen](https://www.fastify.io/docs/latest/Reference/Server/#listen) on, default is all |
4849
| SERVER_PORT | No | 3000 | Port to [listen](https://www.fastify.io/docs/latest/Reference/Server/#listen) on |
4950
| CACHE_PRIVACY | No | private | [Cache response directive](https://github.com/fastify/fastify-caching) |

0 commit comments

Comments
 (0)