mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
8c730c0694
* refactor: max-len and printWidth to 100 * chore: ci specific pnpm version * fix: add types peer package literally get rid of types package
1.7 KiB
1.7 KiB
id | title |
---|---|
logger | Logger |
As any web application, verdaccio has a customisable built-in logger. You can define multiple types of outputs.
''
logs:
# console output
- { type: stdout, format: pretty, level: http }
# file output
- { type: file, path: verdaccio.log, level: info }
# Rotating log stream. Options are passed directly to bunyan. See: https://github.com/trentm/node-bunyan#stream-type-rotating-file
- {
type: rotating-file,
format: json,
path: /path/to/log.jsonl,
level: http,
options: { period: 1d },
}
Use SIGUSR2
to notify the application, the log-file was rotated and it needs to reopen it.
Note: Rotating log stream is not supported in cluster mode. See here
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 |