C# 클래스 Quilt4.Service.Logging.EventLogger

상속: IServiceLog
파일 보기 프로젝트 열기: Quilt4/Quilt4.Service

공개 메소드들

메소드 설명
CanWriteToLog ( Exception &exception ) : bool
GetAllLogEntries ( ) : IEnumerable
LogException ( Exception exception, LogLevel logLevel ) : void
LogInformation ( string message ) : void
LogWarning ( string message ) : void

비공개 메소드들

메소드 설명
AssureEventLogSource ( ) : Exception
GetMessageFromException ( Exception exception, bool appendStackTrace = true ) : string
WriteToEventLog ( string message, EventLogEntryType eventLogEntryType ) : void

메소드 상세

CanWriteToLog() 공개 메소드

public CanWriteToLog ( Exception &exception ) : bool
exception System.Exception
리턴 bool

GetAllLogEntries() 공개 메소드

public GetAllLogEntries ( ) : IEnumerable
리턴 IEnumerable

LogException() 공개 메소드

public LogException ( Exception exception, LogLevel logLevel ) : void
exception System.Exception
logLevel LogLevel
리턴 void

LogInformation() 공개 메소드

public LogInformation ( string message ) : void
message string
리턴 void

LogWarning() 공개 메소드

public LogWarning ( string message ) : void
message string
리턴 void