C# Class Quilt4.Service.Logging.EventLogger

Inheritance: IServiceLog
Afficher le fichier Open project: Quilt4/Quilt4.Service

Méthodes publiques

Méthode Description
CanWriteToLog ( Exception &exception ) : bool
GetAllLogEntries ( ) : IEnumerable
LogException ( Exception exception, LogLevel logLevel ) : void
LogInformation ( string message ) : void
LogWarning ( string message ) : void

Private Methods

Méthode Description
AssureEventLogSource ( ) : Exception
GetMessageFromException ( Exception exception, bool appendStackTrace = true ) : string
WriteToEventLog ( string message, EventLogEntryType eventLogEntryType ) : void

Method Details

CanWriteToLog() public méthode

public CanWriteToLog ( Exception &exception ) : bool
exception System.Exception
Résultat bool

GetAllLogEntries() public méthode

public GetAllLogEntries ( ) : IEnumerable
Résultat IEnumerable

LogException() public méthode

public LogException ( Exception exception, LogLevel logLevel ) : void
exception System.Exception
logLevel LogLevel
Résultat void

LogInformation() public méthode

public LogInformation ( string message ) : void
message string
Résultat void

LogWarning() public méthode

public LogWarning ( string message ) : void
message string
Résultat void