FileLoggerProviderExtensions.AddFile(ILoggingBuilder, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.