1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/website/docs/logger.md
Sergio Moreno a6b0d63afb
feat: migrate Verdaccio.org to Docusaurus v2 and new design (#2343)
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-07-27 21:52:49 +02:00

1.6 KiB

id title
logger Logger

As with any web application, Verdaccio has a customisable built-in logger. You can define multiple types of outputs.

# console output
logs: { type: stdout, format: pretty, level: http }

or file output.

# file output
logs: { type: file, path: verdaccio.log, level: info }

Verdaccio 5 does not support rotation file anymore, here more details.

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