1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/wiki/logger.md

21 lines
714 B
Markdown
Raw Normal View History

2017-08-28 22:23:15 +02:00
# Logger
2017-08-28 22:57:37 +02:00
As any web application, verdaccio has a customisable built-in logger. You can define multiple types of outputs.
2017-08-28 22:23:15 +02:00
```yaml
logs:
# console output
- {type: stdout, format: pretty, level: http}
# file output
- {type: file, path: verdaccio.log, level: info}
```
### Configuration
Property | Type | Required | Example | Support | Description
--- | --- | --- | --- | --- | ---
type | string | No | [stdout, file] | all | define the output
path | string | No | verdaccio.log | all | if type is file, define the location of that file
format | string | No | [pretty, pretty-timestamped] | all | output format
level | string | No | [fatal, error, warn, http, info, debug, trace] | all | verbose level