Skip to main content

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

SvojstvoTipPotrebnoPrimerPodrškaOpis
typestringNo[stdout, file]potpunadefiniše izlaz
pathstringNoverdaccio.logpotpunaako je tip "fajl", definiše lokaciju fajla
formatstringNo[pretty, pretty-timestamped]potpunaizlazni format
levelstringNo[fatal, error, warn, http, info, debug, trace]potpunaverbose level