Skip to content

Clear Logs #7

@ebuljan

Description

@ebuljan

I don't see a public way to clear the log dictionary. I also don't have access to do a pull request. Can this be added?

    /// <summary>
    /// Public method to clear logsDictionary and reinitialize
    /// </summary>
    public static void ClearLogs()
    {
        logsDictionary.Clear();
        foreach (var level in ((LogLevel[])Enum.GetValues(typeof(LogLevel))).Where(x => x != LogLevel.None))
        {
            logsDictionary.Add(level, new LogForLevel(MaxLogCount));
        }
    }

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