EventLogLogger Klasa

Definicja

Przestroga

This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.

Rejestrator, który zapisuje komunikaty w Windows dziennika zdarzeń.

public ref class EventLogLogger : Microsoft::Extensions::Logging::ILogger
public class EventLogLogger : Microsoft.Extensions.Logging.ILogger
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.")]
public class EventLogLogger : Microsoft.Extensions.Logging.ILogger
type EventLogLogger = class
    interface ILogger
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.")>]
type EventLogLogger = class
    interface ILogger
Public Class EventLogLogger
Implements ILogger
Dziedziczenie
EventLogLogger
Atrybuty
Implementuje

Konstruktory

EventLogLogger(String)

Inicjuje nowe wystąpienie klasy EventLogLogger.

EventLogLogger(String, EventLogSettings)

Inicjuje nowe wystąpienie klasy EventLogLogger.

EventLogLogger(String, EventLogSettings, IExternalScopeProvider)

Inicjuje nowe wystąpienie klasy EventLogLogger.

Właściwości

EventLog

Metody

BeginScope<TState>(TState)

Rozpoczyna zakres operacji logicznej.

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
IsEnabled(LogLevel)

Sprawdza, czy dany logLevel jest włączony.

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Zapisuje wpis dziennika.

MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Metody rozszerzania

BeginScope(ILogger, String, Object[])

Formatuje komunikat i tworzy zakres.

Log(ILogger, LogLevel, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika na określonym poziomie dziennika.

Log(ILogger, LogLevel, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika na określonym poziomie dziennika.

Log(ILogger, LogLevel, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika na określonym poziomie dziennika.

Log(ILogger, LogLevel, String, Object[])

Formatuje i zapisuje komunikat dziennika na określonym poziomie dziennika.

LogCritical(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika krytycznego.

LogCritical(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika krytycznego.

LogCritical(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika krytycznego.

LogCritical(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika krytycznego.

LogDebug(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika debugowania.

LogDebug(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika debugowania.

LogDebug(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika debugowania.

LogDebug(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika debugowania.

LogError(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika błędów.

LogError(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika błędów.

LogError(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika błędów.

LogError(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika błędów.

LogInformation(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika informacyjnego.

LogInformation(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika informacyjnego.

LogInformation(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika informacyjnego.

LogInformation(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika informacyjnego.

LogTrace(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika śledzenia.

LogTrace(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika śledzenia.

LogTrace(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika śledzenia.

LogTrace(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika śledzenia.

LogWarning(ILogger, EventId, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika ostrzegawczego.

LogWarning(ILogger, EventId, String, Object[])

Formatuje i zapisuje komunikat dziennika ostrzegawczego.

LogWarning(ILogger, Exception, String, Object[])

Formatuje i zapisuje komunikat dziennika ostrzegawczego.

LogWarning(ILogger, String, Object[])

Formatuje i zapisuje komunikat dziennika ostrzegawczego.

Dotyczy