C# Класс Microsoft.VS.ConfigurationManager.Support.Logger

All logging capabilites for class run through these trace listeners
Показать файл Открыть проект

Открытые методы

Метод Описание
Log ( Exception ex ) : string

With passed exceptions, information is written to log

Log ( Exception ex, string sourcelocation ) : string

With passed exceptions, information is written to log

Log ( string logtext, MessageLevel eventlevel = MessageLevel.Information, string source = "Default" ) : string

Logging source location as well as event level

LogWithOutput ( string logtext, MessageLevel eventlevel = MessageLevel.Information, string source = "Default" ) : string

Logging source location as well as event level

Приватные методы

Метод Описание
GenerateOutputMessage ( string logtext, MessageLevel prefix, string source ) : void
GetCaller ( ) : StackFrame
GetCurrentMethod ( StackFrame sf ) : string
GetCurrentMethod ( StackTrace st = null ) : string

Описание методов

Log() публичный статический Метод

With passed exceptions, information is written to log
public static Log ( Exception ex ) : string
ex System.Exception
Результат string

Log() публичный статический Метод

With passed exceptions, information is written to log
public static Log ( Exception ex, string sourcelocation ) : string
ex System.Exception
sourcelocation string
Результат string

Log() публичный статический Метод

Logging source location as well as event level
public static Log ( string logtext, MessageLevel eventlevel = MessageLevel.Information, string source = "Default" ) : string
logtext string
eventlevel MessageLevel
source string
Результат string

LogWithOutput() публичный статический Метод

Logging source location as well as event level
public static LogWithOutput ( string logtext, MessageLevel eventlevel = MessageLevel.Information, string source = "Default" ) : string
logtext string
eventlevel MessageLevel
source string
Результат string