Closed ptoussai closed 3 years ago
Pretty print is enabled by default, and the output will be similar to how it currently is.
Example:
[15:19:05.269] INFO (requests): <-- GET /api/me
[15:19:05.282] INFO (requests): --> GET /api/me 200 13ms
The configuration of the logger will be done in the config like:
logger: {
prettyPrint: true,
level: 'info'
}
I decided to no put that under config.log
to not cause confusion.
Everything configured by config.log
still uses the console. I think it's OK since it's usually meant for debugging.
In the future, this could use Pino and be configured by setting the level
instead.
Thanks @ptoussai!
Make it available through
app
andctx
.