C# 클래스 ODataRestierDynamic.Log.DynamicLogger

A dynamic logger.
파일 보기 프로젝트 열기: arcelormittalkriviyrih/odata_unified_svc

Private Properties

프로퍼티 타입 설명
AdjustSystemEventSource void
DynamicLogger System
GetLogFile string
GetPathToLogFile string
WriteLog void

공개 메소드들

메소드 설명
ConfigureFileLogger ( string logFilePath ) : void

Configures the default file logger.

StackTraceException ( Exception exception ) : string

String representation of given exception stack trace (with all inner exceptions)

WriteLoggerLogError ( string text ) : string

Logger writes log into the log-file

WriteLoggerLogError ( string text, Exception exception ) : string

Logger writes log into the log-file

WriteLoggerLogInfo ( string text ) : string

Logger writes log into the log-file

비공개 메소드들

메소드 설명
AdjustSystemEventSource ( ) : void

Creates the system event source of the service if it does not exist.

DynamicLogger ( ) : System

Static constructor.

GetLogFile ( ) : string

Get path to log file on file system and create all directories in this path which not yet exists.

GetPathToLogFile ( ) : string

Returns path to log file for this web service

WriteLog ( string text, EventLogEntryType eventLogEntryType, Exception exception = null ) : void

Writes a log.

메소드 상세

ConfigureFileLogger() 공개 정적인 메소드

Configures the default file logger.
public static ConfigureFileLogger ( string logFilePath ) : void
logFilePath string
리턴 void

StackTraceException() 공개 메소드

String representation of given exception stack trace (with all inner exceptions)
public StackTraceException ( Exception exception ) : string
exception System.Exception
리턴 string

WriteLoggerLogError() 공개 메소드

Logger writes log into the log-file
public WriteLoggerLogError ( string text ) : string
text string String to write into the log
리턴 string

WriteLoggerLogError() 공개 메소드

Logger writes log into the log-file
public WriteLoggerLogError ( string text, Exception exception ) : string
text string String to write into the log
exception System.Exception Exception to log
리턴 string

WriteLoggerLogInfo() 공개 메소드

Logger writes log into the log-file
public WriteLoggerLogInfo ( string text ) : string
text string String to write into the log
리턴 string