C# Класс ODataRestierDynamic.Log.DynamicLogger

A dynamic logger.
Показать файл Открыть проект

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