feat(packages/shared)!: switch to less resource-intensive logger

This commit is contained in:
PalmDevs
2023-11-29 22:41:38 +07:00
parent faa15879c9
commit e9638a7713
5 changed files with 55 additions and 68 deletions

View File

@@ -28,9 +28,18 @@ Amount of concurrent queues that can be run at a time.
Heartbeat interval for clients. See [**💓 Heartbeating**](./packets.md#💓-heartbeating).
### `config.debugLogsInProduction`
### `config.consoleLogLevel`
Whether to print debug logs at all in production mode (when `NODE_ENV` is `production`).
The level of logs to print to console. If the level is more important or equally important to set level, it will be forwarded to the console.
The possible levels (sorted by their importance descendingly) are:
- `fatal`
- `error`
- `warn`
- `info`
- `log`
- `trace`
- `debug`
## ⏭️ What's next