mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
docs: Add logger documentation
This commit is contained in:
parent
97f8c120aa
commit
a5b33bbffc
1 changed files with 20 additions and 0 deletions
20
wiki/logger.md
Normal file
20
wiki/logger.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Logger
|
||||||
|
|
||||||
|
As any web application, verdaccio has a customisable build-in logger. You can define a multiple types of outputs.
|
||||||
|
|
||||||
|
```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
|
Loading…
Reference in a new issue