Skip to content

FileLoggerProviderExtensions Methods

Extension methods to configure ILoggingBuilder with FileLoggerProvider

AddFile(ILoggingBuilder, string)

staticextension
View source
public static ILoggingBuilder AddFile(this ILoggingBuilder builder, string filePathName)
Adds file logging with a provider owned by the logging service container.

Parameters

builderILoggingBuilder
The logging builder.
filePathNamestring
The log file path

Returns

The logging builder.