ListLoggerFactory ListLoggerFactory Class

Definition

public class ListLoggerFactory : ILoggerFactory
Public Class ListLoggerFactory
    Inherits ILoggerFactory
Inheritance
System.ObjectSystem.Object
ListLoggerFactoryListLoggerFactory

Constructors

ListLoggerFactory(List<>>) ListLoggerFactory(List(Of Tuple(Of LogLevel, String)))

public ListLoggerFactory(List<Tuple<LogLevel, string>> log)
Public Sub New(log As List(Of Tuple(Of LogLevel, String)))
Parameters
log
System.Collections.Generic.List<System.Tuple<System.LogLevel, System.String>> System.Collections.Generic.List(Of System.Tuple(Of System.LogLevel, System.String))

ListLoggerFactory(List<>>, Func) ListLoggerFactory(List(Of Tuple(Of LogLevel, String)), Func(Of String, Boolean))

public ListLoggerFactory(List<Tuple<LogLevel, string>> log, Func<string, bool> shouldCreateLogger)
Public Sub New(log As List(Of Tuple(Of LogLevel, String)), shouldCreateLogger As Func(Of String, Boolean))
Parameters
log
System.Collections.Generic.List<System.Tuple<System.LogLevel, System.String>> System.Collections.Generic.List(Of System.Tuple(Of System.LogLevel, System.String))
shouldCreateLogger
System.Func<System.String, System.Boolean> System.Func(Of System.String, System.Boolean)

Methods

AddProvider(ILoggerProvider) AddProvider(ILoggerProvider)

public void AddProvider(ILoggerProvider provider)
Public Sub AddProvider(provider As ILoggerProvider)
Parameters
provider
ILoggerProvider ILoggerProvider

CreateLogger(String) CreateLogger(String)

public ILogger CreateLogger(string name)
Public Function CreateLogger(name As String) As ILogger
Parameters
name
System.String System.String
Returns
ILogger ILogger

Dispose() Dispose()

public void Dispose()
Public Sub Dispose