C# Class KSUtil.Logger

Logger class for writing strings to a text file, can be used during command-line operations.
Mostrar archivo Open project: angelaHillier/KSUtil

Public Methods

Method Description
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

Method Details

Log() public static method

Writes text to the log file
public static Log ( string toLog ) : void
toLog string String to write
return void

Start() public static method

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
return void

Stop() public static method

Closes the log file and uninitializes the logger
public static Stop ( ) : void
return void