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

Added relay_sink. #3017

Open
wants to merge 1 commit into
base: v1.x
Choose a base branch
from
Open

Added relay_sink. #3017

wants to merge 1 commit into from

Conversation

risa2000
Copy link
Contributor

Adds relay_sink, which just wraps a full featured spdlog::logger.

This can be useful in an application which uses several standalone components (typically DLLs) where each instantiates its own logger to define an application specific log messages "routing".

For example, during an initialization of each DLL, the app can chose to replace the DLLs loggers' sinks with the relay_sink with its own global logger and thus rerouting all log messages from all loggers through its own sinks, without destroying the DLLs' loggers.

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

Successfully merging this pull request may close these issues.

1 participant