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

All logging capabilites for class run through these trace listeners
Afficher le fichier Open project: Microsoft/VisualStudioUninstaller

Méthodes publiques

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

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

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

Log() public static méthode

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

Log() public static méthode

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

LogWithOutput() public static méthode

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