Skip to main content

Olugbasilẹ

As with 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. Awọn aṣayan n jẹ fifransẹ ni taara si bunyan. Wo: 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}}

Lo SIGUSR2 lati pe akiyesi ohun elo naa, faili-igbasilẹ naa jẹ yi yipo atipe o nilo lati ṣe atunsi rẹ. Akiyesi: Sise ayipo odò igbasilẹ ko ni atilẹyin ni ipo iṣupọ. Wo ibi

# 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

Ohun iniIruTi o niloApẹẹrẹAtilẹyinApejuwe
iruokunRara[stdout, file]gbogboṣe asọye abajade naa
ọnaokunRaraverdaccio.loggbogboti iru ẹ ba jẹ faili, ṣe asọye aaye ti faili naa
ọnaokunRara[pretty, pretty-timestamped]gbogboọna abajade
ipeleokunRara[fatal, error, warn, http, info, debug, trace]gbogboipele verbose