Edit

Share via


FileLoggerProviderExtensions.AddFile(ILoggingBuilder, String) Method

Definition

Add FileLoggerProvider to builder

public static Microsoft.Extensions.Logging.ILoggingBuilder AddFile (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string filePathName);
static member AddFile : Microsoft.Extensions.Logging.ILoggingBuilder * string -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFile (builder As ILoggingBuilder, filePathName As String) As ILoggingBuilder

Parameters

builder
ILoggingBuilder

The logging builder.

filePathName
String

The log file path

Returns

The logging builder.

Applies to