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

Allow subsystem-specific log entry augmentation #4

Open
iboB opened this issue Feb 7, 2025 · 0 comments
Open

Allow subsystem-specific log entry augmentation #4

iboB opened this issue Feb 7, 2025 · 0 comments

Comments

@iboB
Copy link
Owner

iboB commented Feb 7, 2025

The use case is as follows:

  • Have library code which logs
  • Run it from two subsystems
  • Log is confusing as the messages looks the same

How about:

  • Solution 1: loggers modify messages
    • Have multiple loggers
    • Add the same sinks (same instance) to them
    • Have logger augment the messages
  • Solution 2: sinks augment messages
    • Have multiple loggers
    • Add the same sink types to them (but different instances)
    • Allow all sinks to have an additional scope string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant