C# Класс KSUtil.Logger

Logger class for writing strings to a text file, can be used during command-line operations.
Показать файл Открыть проект

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

Метод Описание
Log ( string toLog ) : void

Writes text to the log file

Start ( string path, bool overwrite ) : void

Initializes the logger and prepares the file to accept input

Stop ( ) : void

Closes the log file and uninitializes the logger

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

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

Writes text to the log file
public static Log ( string toLog ) : void
toLog string String to write
Результат void

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

Initializes the logger and prepares the file to accept input
public static Start ( string path, bool overwrite ) : void
path string Path of file to log output to
overwrite bool True, if file contents should be overwritten by the logger
Результат void

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

Closes the log file and uninitializes the logger
public static Stop ( ) : void
Результат void