C# Class Shared.Logger

Afficher le fichier Open project: sealuzh/PersonalAnalytics

Méthodes publiques

Méthode Description
GetLogPath ( ) : string

Returns the path to the logfile

WriteToConsole ( string message ) : void

Writes a message to the console.

WriteToLogFile ( Exception e ) : void

Writes a message from a source to the logfile in the output folder.

Private Methods

Méthode Description
Log ( Exception e, TextWriter w ) : void

Method Details

GetLogPath() public static méthode

Returns the path to the logfile
public static GetLogPath ( ) : string
Résultat string

WriteToConsole() public static méthode

Writes a message to the console.
public static WriteToConsole ( string message ) : void
message string
Résultat void

WriteToLogFile() public static méthode

Writes a message from a source to the logfile in the output folder.
public static WriteToLogFile ( Exception e ) : void
e System.Exception
Résultat void