Skip to content

Modifying config after the logger is created #797

@vincentparrett

Description

@vincentparrett

I really need a way to modify the configuration whilst an application is running.

Use Case - enable/disable debug logging.

I want to change an app.config setting to turn on debug logging (to a file) without restarting (which is what we currently do). The reason for not wanting to restart is because sometimes a intermittent fault goes away after restarting, being able to turn on debug logging whilst it's still happening would be a major bonus.

Edit : Found the .ControlledBy config which helps a lot, but still need to change sinks or at least enable/disable them on the fly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions