C# Class xLogger.Logger

Provides a logging class. Creates a timestamped log file.
显示文件 Open project: xwcg/SpawnBot

Public Methods

Method Description
Write ( string txt ) : void

Write text to console and logfile

Write ( string txt, ConsoleColor clr ) : void

Write text to console and logfile

WriteLine ( string txt ) : void

Write line to console and logfile

WriteLine ( string txt, ConsoleColor clr ) : void

Write line to console and logfile

Method Details

Write() public static method

Write text to console and logfile
public static Write ( string txt ) : void
txt string Text
return void

Write() public static method

Write text to console and logfile
public static Write ( string txt, ConsoleColor clr ) : void
txt string Text
clr ConsoleColor Text color (for console window)
return void

WriteLine() public static method

Write line to console and logfile
public static WriteLine ( string txt ) : void
txt string Line text
return void

WriteLine() public static method

Write line to console and logfile
public static WriteLine ( string txt, ConsoleColor clr ) : void
txt string Line text
clr ConsoleColor Line color (for console window)
return void