C# Class Microsoft.VS.ConfigurationManager.Support.Logger

All logging capabilites for class run through these trace listeners
Mostrar archivo Open project: Microsoft/VisualStudioUninstaller

Public Methods

Method Description
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

Private Methods

Method Description
GenerateOutputMessage ( string logtext, MessageLevel prefix, string source ) : void
GetCaller ( ) : StackFrame
GetCurrentMethod ( StackFrame sf ) : string
GetCurrentMethod ( StackTrace st = null ) : string

Method Details

Log() public static method

With passed exceptions, information is written to log
public static Log ( Exception ex ) : string
ex System.Exception
return string

Log() public static method

With passed exceptions, information is written to log
public static Log ( Exception ex, string sourcelocation ) : string
ex System.Exception
sourcelocation string
return string

Log() public static method

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
return string

LogWithOutput() public static method

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
return string