Show / Hide Table of Contents

ConfigureLoggerFactory Method

ConfigureLoggerFactory(Action<ILoggingBuilder>)

From your project, you can set up logging dynamically like this, if you don't use this, the default dotnet LoggerFactory will be created and output to the console.
Logging.ConfigureLoggerFactory(builder => builder.AddConsole().SetMinimumLevel(LogLevel.Trace));
With the default logging factory, you can load config using json.
C#
public static void ConfigureLoggerFactory(Action<ILoggingBuilder> configure)

Parameters

Type Name Description
Action<ILoggingBuilder> configure
In this article
Back to top Generated by DocFX