C# Class Scorchio.VisualStudio.Services.TraceService

Defines the TraceService type.
Datei anzeigen Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Private Properties

Property Type Description
GetTimedMessage string
WriteErrorToLogFile void
WriteMessageToLogFile void

Public Methods

Method Description
Initialize ( bool logToTraceSetting, bool logToConsoleSetting, bool logToFileSetting, bool logExtendedMessageSetting, string logFileSetting, bool displayErrorsSetting, string errorFileSetting ) : void

Initializes the specified settings.

WriteDebugLine ( string message ) : void

Writes the extended line.

WriteError ( Exception exception ) : void

Writes the error.

WriteError ( string message ) : void

Writes the Error.

WriteHeader ( string message ) : void

Writes a header message.

WriteLine ( string message ) : void

Writes the line.

Private Methods

Method Description
GetTimedMessage ( string type, string message ) : string

Gets the timed message.

WriteErrorToLogFile ( string message ) : void

Writes the error to log file.

WriteMessageToLogFile ( string message ) : void

Writes the message to the log file.

Method Details

Initialize() public static method

Initializes the specified settings.
public static Initialize ( bool logToTraceSetting, bool logToConsoleSetting, bool logToFileSetting, bool logExtendedMessageSetting, string logFileSetting, bool displayErrorsSetting, string errorFileSetting ) : void
logToTraceSetting bool if set to true [log to trace setting].
logToConsoleSetting bool if set to true [log to console setting].
logToFileSetting bool if set to true [log to file setting].
logExtendedMessageSetting bool if set to true [log extended message setting].
logFileSetting string The log file setting.
displayErrorsSetting bool if set to true [display errors setting].
errorFileSetting string The error file setting.
return void

WriteDebugLine() public static method

Writes the extended line.
public static WriteDebugLine ( string message ) : void
message string The message.
return void

WriteError() public static method

Writes the error.
public static WriteError ( Exception exception ) : void
exception System.Exception The exception.
return void

WriteError() public static method

Writes the Error.
public static WriteError ( string message ) : void
message string The message.
return void

WriteHeader() public static method

Writes a header message.
public static WriteHeader ( string message ) : void
message string The message.
return void

WriteLine() public static method

Writes the line.
public static WriteLine ( string message ) : void
message string The message.
return void