C#C
C#2y ago
GooBad

Logging...

    public DataService() {
        this.Logger = LoggerFactory.Create(builder => {
            builder.AddSimpleConsole();
            builder.AddDebug();
            builder.SetMinimumLevel(LogLevel.Information);
        }).CreateLogger("DataService");
    }

This is logger on my class, i want to configure the builder globally how do i do that? there is 3000 articles in google total spam of paid medium etc. documentation has 304909 of usless words but i just want to know how to use a simple pattern like in python logging.basicconfig(level=) that will configure the logging level for my whole application :/
Was this page helpful?