Skip to content

Sample uses obselete methods #7

@jhumphries83

Description

@jhumphries83

Hi,

When I use the sample code in Readme.md to create a logger factory I get a warning that it is obselete: "This method is obselete and will be removed in future versions. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options."

I'm not quite sure how to implement that, could the sample code be updated?

The sample code in question is:

Create and configure LoggerFactory

ILoggerFactory loggerFactory = new LoggerFactory();
loggerFactory.AddProvider(new ConsoleLoggerProvider((text, logLevel) => logLevel >= LogLevel.Debug, false));

Thanks

Jim

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