C# Class ODataRestierDynamic.Log.DynamicLogger

A dynamic logger.
Afficher le fichier Open project: arcelormittalkriviyrih/odata_unified_svc

Private Properties

Свойство Type Description
AdjustSystemEventSource void
DynamicLogger System
GetLogFile string
GetPathToLogFile string
WriteLog void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

ConfigureFileLogger() public static méthode

Configures the default file logger.
public static ConfigureFileLogger ( string logFilePath ) : void
logFilePath string
Résultat void

StackTraceException() public méthode

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

WriteLoggerLogError() public méthode

Logger writes log into the log-file
public WriteLoggerLogError ( string text ) : string
text string String to write into the log
Résultat string

WriteLoggerLogError() public méthode

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
Résultat string

WriteLoggerLogInfo() public méthode

Logger writes log into the log-file
public WriteLoggerLogInfo ( string text ) : string
text string String to write into the log
Résultat string