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

[Logger] - Improve logger feature #3689

Open
burgerni10 opened this issue Nov 14, 2024 · 0 comments
Open

[Logger] - Improve logger feature #3689

burgerni10 opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request logs
Milestone

Comments

@burgerni10
Copy link
Collaborator

Allow each entity (connector, history query, web server) to set its own log level.

To do so, on the frontend:

  • The log section in the engine is treated as the general log settings. Each level now means the default log level
  • Add an "internal logger" with each level st to "default" (new level) by default
  • Add a the four log level input (console, file, database, loki, oianalytics) in the general settings of south, north and history queries (set to "default" by default)
  • Allow the user to choose between "default" and the other levels (trace, debug,... error)

On the backend:

  • Adapt the data model to reflect the previous changes
  • A static logger service with a basic Pino log (with trace level) must be defined
  • Every entity that uses a dedicated logger must create a child logger from this basic logger from the service (instead of using the logger parent) at creation or on settings changes
  • If the "default" option is set, it must create the logger with the default settings set in the logger section of the engine
@burgerni10 burgerni10 added this to the future milestone Nov 14, 2024
@burgerni10 burgerni10 added enhancement New feature or request logs labels Nov 14, 2024
@burgerni10 burgerni10 modified the milestones: future, v3.6 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logs
Projects
None yet
Development

No branches or pull requests

2 participants