Skip to main content
Version: Next

Logger

info

Since v5.22.0 the logger property is renamed from logs to log, but still compatible with v6 but not recommended to use, could be removed any time.

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

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

or file output.

# file output
log: { 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

PropertyTypeRequiredExampleSupportDescription
typestringNo[stdout, file]alldefine the output
pathstringNoverdaccio.logallif type is file, define the location of that file
formatstringNo[pretty, pretty-timestamped]alloutput format
levelstringNo[fatal, error, warn, info, http, debug, trace]allverbose level
colorsbooleanNofalsev5.7.0disable or enable colors