Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SENTINEL] - Enhancement Logging System #254

Open
ngmachado opened this issue Oct 23, 2023 · 2 comments
Open

[SENTINEL] - Enhancement Logging System #254

ngmachado opened this issue Oct 23, 2023 · 2 comments
Assignees
Labels
Size: M Team: Protocol Protocol Core, Sentinel, Peripherals, Protocol Infrastructure Tools & DevOps Type: Enhancement New feature or request

Comments

@ngmachado
Copy link
Collaborator

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:

  • Implement structured logging to ensure consistency across logs.
  • Segregate business logic logs from system logs to enhance readability and analysis.

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"
}
@ngmachado ngmachado added Type: Enhancement New feature or request Size: M Team: Protocol Protocol Core, Sentinel, Peripherals, Protocol Infrastructure Tools & DevOps labels Oct 23, 2023
@ngmachado ngmachado self-assigned this Oct 23, 2023
@philipandersson
Copy link

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

@ngmachado
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: M Team: Protocol Protocol Core, Sentinel, Peripherals, Protocol Infrastructure Tools & DevOps Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants