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

Failover Logger #12

Open
oxinabox opened this issue Apr 21, 2019 · 0 comments
Open

Failover Logger #12

oxinabox opened this issue Apr 21, 2019 · 0 comments

Comments

@oxinabox
Copy link
Member

I thought the DemuxLogger was alone in its class.
but there exists at least one other.
The FailoverLogger
which is kind of like a DemuxLogger,
but instead of writing to all of its child loggers,
it tries to write to the first, then if an error is thrown,
tries the second,
and so forth.

See Go's Log15 library:

https://github.com/inconshreveable/log15/blob/67afb5ed74ec82fd7ac8f49d27c509ac6f991970/handler.go#L210-L225

@oxinabox oxinabox changed the title Fallback Logger Failover Logger Apr 21, 2019
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