Skip to content

Failover Logger #12

Open
Open
@oxinabox

Description

@oxinabox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions