website
website copied to clipboard
[Epic] Logger
we need some solution to view the nodejs-log and somehow structure it. What i mean is:
- the developer/maintainer should be able to view logs for production
- the logs need to be filterable (show only criticals, etc)
- having a standard structure (severity, stack, message, scope/module etc.)
- a solution that is good for production and development
most of the loggers going for a json format and options for multiple "backends", like file, mongoDB, stdout/err.
First we should identify what options we have on production -> maybe something like greylog... Beware: sensitive data should not be logged (emails etc.), but don't know how we should handle it right now.
a list of common loggers https://www.highlight.io/blog/nodejs-logging-libraries