superfluid-finance / superfluid-sentinel

MIT License
24 stars 13 forks source link

[SENTINEL] - Enhancement Logging System #254

Open ngmachado opened 9 months ago

ngmachado commented 9 months 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.

Objective:

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"
}
philipandersson commented 9 months ago

I drop my suggestion here: https://github.com/pinojs/pino

ngmachado commented 9 months ago

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