2021-07-11 08:42:56 -05:00
---
id: logger
2022-12-25 12:48:18 -05:00
title: 'Logger'
2021-07-11 08:42:56 -05:00
---
2023-03-08 02:36:59 -05:00
:::info
2023-03-11 03:28:51 -05:00
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.
2023-03-08 02:36:59 -05:00
:::
As with any web application, Verdaccio has a customizable built-in logger. You can define multiple types of outputs.
2021-07-11 08:42:56 -05:00
```yaml
# console output
2023-03-08 02:36:59 -05:00
log: { type: stdout, format: pretty, level: http }
2021-07-11 08:42:56 -05:00
```
or file output.
```yaml
# file output
2023-03-08 02:36:59 -05:00
log: { type: file, path: verdaccio.log, level: info }
2021-07-11 08:42:56 -05:00
```
> 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 )
2021-07-27 14:52:49 -05:00
### Configuration {#configuration}
2021-07-11 08:42:56 -05:00
2022-12-25 12:48:18 -05:00
| Property | Type | Required | Example | Support | Description |
| -------- | ------- | -------- | ---------------------------------------------- | ------- | ------------------------------------------------- |
| type | string | No | [stdout, file] | all | define the output |
| path | string | No | verdaccio.log | all | if type is file, define the location of that file |
| format | string | No | [pretty, pretty-timestamped] | all | output format |
| level | string | No | [fatal, error, warn, http, info, debug, trace] | all | verbose level |
| colors | boolean | No | false | v5.7.0 | disable or enable colors |