C# Class Shared.Logger

Mostra file Open project: sealuzh/PersonalAnalytics

Public Methods

Method 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

Method Description
Log ( Exception e, TextWriter w ) : void

Method Details

GetLogPath() public static method

Returns the path to the logfile
public static GetLogPath ( ) : string
return string

WriteToConsole() public static method

Writes a message to the console.
public static WriteToConsole ( string message ) : void
message string
return void

WriteToLogFile() public static method

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