0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/website/translated_docs/pl-PL/logger.md

31 lines
No EOL
1.7 KiB
Markdown

---
id: logger
title: "Rejestrator"
---
As with any web application, Verdaccio has a customisable built-in logger. You can define multiple types of outputs.
```yaml
# console output
logs: { type: stdout, format: pretty, level: http }
```
or file output.
```yaml
# file output
logs: { type: file, path: verdaccio.log, level: info }
```
> Verdaccio 5 does not support rotation file anymore, [here more details](https://verdaccio.org/blog/2021/04/14/verdaccio-5-migration-guide#pinojs-is-the-new-logger).
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](https://github.com/trentm/node-bunyan#stream-type-rotating-file)
### Konfiguracja
| Właściwość | Typ | Wymagane | Przykład | Wsparcie | Opis |
| ---------- | ----------- | -------- | ---------------------------------------------- | --------- | ------------------------------------------------------- |
| typ | ciąg znaków | Nie | [stdout, plik] | wszystkie | zdefiniuj wyjście |
| ścieżka | ciąg znaków | Nie | verdaccio.log | wszystko | jeśli typem jest plik, zdefiniuj lokalizację tego pliku |
| format | ciąg znaków | Nie | [pretty, pretty-timestamped] | wszystko | format wyjścia |
| poziom | ciąg znaków | Nie | [fatal, error, warn, http, info, debug, trace] | wszystko | verbose level |