C# Class KSUtil.Logger

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

Méthodes publiques

Méthode 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 méthode

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

Start() public static méthode

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
Résultat void

Stop() public static méthode

Closes the log file and uninitializes the logger
public static Stop ( ) : void
Résultat void