C# 클래스 KSUtil.Logger

Logger class for writing strings to a text file, can be used during command-line operations.
파일 보기 프로젝트 열기: angelaHillier/KSUtil

공개 메소드들

메소드 설명
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