C# Класс Scorchio.VisualStudio.Services.TraceService

Defines the TraceService type.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetTimedMessage string
WriteErrorToLogFile void
WriteMessageToLogFile void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Initialize() публичный статический Метод

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.
Результат void

WriteDebugLine() публичный статический Метод

Writes the extended line.
public static WriteDebugLine ( string message ) : void
message string The message.
Результат void

WriteError() публичный статический Метод

Writes the error.
public static WriteError ( Exception exception ) : void
exception System.Exception The exception.
Результат void

WriteError() публичный статический Метод

Writes the Error.
public static WriteError ( string message ) : void
message string The message.
Результат void

WriteHeader() публичный статический Метод

Writes a header message.
public static WriteHeader ( string message ) : void
message string The message.
Результат void

WriteLine() публичный статический Метод

Writes the line.
public static WriteLine ( string message ) : void
message string The message.
Результат void