Skip to content

Possibility to spool log events into a buffer, which are then output at some later point such as a request-handler throwing an exception? #51

@petemounce

Description

@petemounce

NLog over in the .NET world has this quite neat feature where it's possible to define conditional patterns (nlog calls these layouts), and also wrap appenders (which nlog calls targets). Combining these two features means it's possible to create a logger that spools events into a buffer, and then outputs them in the future, setting a minimum level according to whether an error occurred or not.

For example, responding to a web request involving talking to a third-party - when that conversation fails, it's really handy to get trace-level log-events which might include timing information, as opposed to just the default-configured warn-and-above and then relying on an operator to notice, crank up the volume, and hope it can be reproduced. Example configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions