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

Implement Log Level Customization for Enhanced Observability #144

Closed
monilpat opened this issue Dec 25, 2024 · 0 comments
Closed

Implement Log Level Customization for Enhanced Observability #144

monilpat opened this issue Dec 25, 2024 · 0 comments
Labels
enhancement New feature or request logging

Comments

@monilpat
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The current logging system lacks flexibility in adjusting log levels dynamically, which limits the ability to capture relevant information during different operational states.

Describe the solution you'd like

Introduce log level customization that allows dynamic adjustment of log levels based on the operational context. This should include:

  • Implementing a configuration system that supports runtime changes to log levels.
  • Providing an interface or API to adjust log levels across different modules.
  • Ensuring that log levels can be set at both global and module-specific scopes.

Code Example

// Example of setting log levels dynamically
logger.setLevel('debug');
logger.getModuleLogger('transactionHandler').setLevel('warn');

Describe alternatives you've considered

  • Maintaining static log levels, which require application restarts to modify.
  • Using external log management tools to filter logs post-processing, which increases complexity and latency.

Additional context

Dynamic log level adjustment will improve observability and monitoring by allowing fine-tuning of logs based on real-time requirements, thus enhancing the ability to diagnose issues promptly.

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logging
Projects
None yet
Development

No branches or pull requests

2 participants