Skip to content

[Feature] Add a ReloadableLogger.IsFrozen() method #100

@EmperorArthur

Description

@EmperorArthur

Request

Add a ReloadableLogger.IsFrozen() method, which returns a boolean value based on if ReloadableLogger is frozen or not.

Reasoning

I am trying to both use Serilog with bootstrap logging and run AspNetCore tests in parallel. This caused me more headache than I'd like, and I recently ran into this issue.

While this in and of itself does not solve the issue, it at least moves towards a solution. Right now there is no way to see if ReloadableLogger is frozen without attempting to freeze it and catching the error.

Long term, this would allow for AddSerilog(...) to do something other than just throw.

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