Open ngmachado opened 1 year ago
Our logging system mixes business logic logs with system logs, making it hard to segregate and analyse the logs effectively.
We should aim to structure our logging system to provide clarity and segregation between business and system logs.
Design a structured log object format, such as:
{ "level": ["info", "warn", "debug", "error"], "category": ["system", "business"], "class": "class creating the data point", "method": "method creating the data point", "log": "LOG TEXT", "timestamp": "2023-10-23T10:00:00.000Z" }
I drop my suggestion here: https://github.com/pinojs/pino
Thank for comment, but we already have a logging framework in place winston. This issue is more about how to organize and log at sentinel logic
Our logging system mixes business logic logs with system logs, making it hard to segregate and analyse the logs effectively.
We should aim to structure our logging system to provide clarity and segregation between business and system logs.
Objective:
Design a structured log object format, such as: