mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
1.6 KiB
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
Konfigurace
Vlastnost | Typ | Požadované | Příklad | Podpora | Popis |
---|---|---|---|---|---|
typ | řetězec | Ne | [stdout, file] | všechny | definovat výstup |
cesta | řetězec | Ne | verdaccio.log | všechny | pokud je typ soubor, definujte umístění souboru |
formát | řetězec | Ne | [pretty, pretty-timestamped] | všechny | výstupní formát |
úroveň | řetězec | Ne | [fatal, error, warn, http, info, debug, trace] | všechny | úroveň podrobností |