C# Класс SANTA.IO.Log

A class that writes information to a log file.
Показать файл Открыть проект

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

Метод Описание
InitLog ( ) : void

Initializes the log by copying the existing log to a backup location.

LogError ( String message ) : void

Writes an error message to the log file.

LogInfo ( String message ) : void

Writes an informatory message to the log file.

LogWarning ( String message ) : void

Writes a warning message to the log file.

TestLog ( ) : void

A test method for the log file to make sure it writes messages and parameters correctly.

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

Метод Описание
WriteLog ( String message, String parameters ) : void

Writes a log message to the log file.

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

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

Initializes the log by copying the existing log to a backup location.
public static InitLog ( ) : void
Результат void

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

Writes an error message to the log file.
public static LogError ( String message ) : void
message String The message to write.
Результат void

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

Writes an informatory message to the log file.
public static LogInfo ( String message ) : void
message String The message to write.
Результат void

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

Writes a warning message to the log file.
public static LogWarning ( String message ) : void
message String The message to write.
Результат void

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

A test method for the log file to make sure it writes messages and parameters correctly.
public static TestLog ( ) : void
Результат void