FileLoggerProvider FileLoggerProvider Class

Definition

The logger provider that creates instances of .

public class FileLoggerProvider
Public Class FileLoggerProvider
Inheritance
FileLoggerProviderFileLoggerProvider

Constructors

FileLoggerProvider(Int32, Int32, Int32, String) FileLoggerProvider(Int32, Int32, Int32, String)

Creates a new instance of the class.

public FileLoggerProvider(int fileSizeLimit, int retainedFileCountLimit, int backgroundQueueSize, string outputTemplate)
Public Sub New(fileSizeLimit As Integer, retainedFileCountLimit As Integer, backgroundQueueSize As Integer, outputTemplate As String)
Parameters
fileSizeLimit
Int32 Int32

A strictly positive value representing the maximum log size in megabytes. Once the log is full, no more message will be appended

retainedFileCountLimit
Int32 Int32

A strictly positive value representing the maximum retained file count

backgroundQueueSize
Int32 Int32

The maximum size of the background queue

outputTemplate
String String

A message template describing the output messages

Methods

ConfigureLogger(IWebAppLogConfigurationReader) ConfigureLogger(IWebAppLogConfigurationReader)

public Logger ConfigureLogger(IWebAppLogConfigurationReader reader)
Public Function ConfigureLogger(reader As IWebAppLogConfigurationReader) As Logger
Parameters
Returns
Serilog.Core.Logger Serilog.Core.Logger

Equals(Object) Equals(Object)

Inherited from Object

Equals(Object, Object) Equals(Object, Object)

Inherited from Object

GetHashCode() GetHashCode()

Inherited from Object

GetType() GetType()

Inherited from Object

MemberwiseClone() MemberwiseClone()

Inherited from Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from Object

ToString() ToString()

Inherited from Object