2017-12-16 13:25:59 +01:00
|
|
|
---
|
|
|
|
id: logger
|
|
|
|
title: "Logger"
|
|
|
|
---
|
2017-08-28 22:23:15 +02:00
|
|
|
|
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}
|
|
|
|
```
|
|
|
|
|
2017-12-05 17:46:48 +01:00
|
|
|
Use `SIGUSR2` to notify the application, the log-file was rotated and it needs to reopen it.
|
|
|
|
|
2017-08-28 22:23:15 +02:00
|
|
|
### Configuration
|
|
|
|
|
2017-12-16 13:25:59 +01:00
|
|
|
Property | Type | Required | Example | Support | Description
|
|
|
|
--- | --- | --- | --- | --- | ---
|
2017-08-28 22:23:15 +02:00
|
|
|
type | string | No | [stdout, file] | all | define the output
|
2017-12-16 13:25:59 +01:00
|
|
|
path | string | No | verdaccio.log | all | if type is file, define the location of that file
|
2017-08-28 22:23:15 +02:00
|
|
|
format | string | No | [pretty, pretty-timestamped] | all | output format
|
|
|
|
level | string | No | [fatal, error, warn, http, info, debug, trace] | all | verbose level
|