Property | Type | Description | |
---|---|---|---|
DefaultConsoleColor | ConsoleColor | ||
FileLogLevel | LogLevel | ||
OutputLevel | LogLevel |
Property | Type | Description | |
---|---|---|---|
_FileStream | |||
_botName | string |
Method | Description | |
---|---|---|
CreateInstance ( string logFile, string botName, LogLevel consoleLogLevel, LogLevel fileLogLevel ) : Log | ||
Debug ( string data ) : void | ||
Dispose ( ) : void | ||
Error ( string data ) : void | ||
Info ( string data ) : void | ||
Silly ( string data ) : void | ||
Verbose ( string data ) : void | ||
Warn ( string data ) : void | ||
Write ( string data ) : void |
Method | Description | |
---|---|---|
_LogColor ( LogLevel level ) : ConsoleColor | ||
_LogLevel ( LogLevel level ) : string | ||
_OutputLine ( LogLevel level, string line ) : void | ||
_OutputLineToConsole ( LogLevel level, string line ) : void |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
GetLogBotName ( ) : string | ||
Log ( string logFile, string botName = "", LogLevel consoleLogLevel = LogLevel.Info, LogLevel fileLogLevel = LogLevel.Info ) : System |
public static CreateInstance ( string logFile, string botName, LogLevel consoleLogLevel, LogLevel fileLogLevel ) : Log | ||
logFile | string | |
botName | string | |
consoleLogLevel | LogLevel | |
fileLogLevel | LogLevel | |
return | Log |
protected _LogColor ( LogLevel level ) : ConsoleColor | ||
level | LogLevel | |
return | ConsoleColor |
protected _LogLevel ( LogLevel level ) : string | ||
level | LogLevel | |
return | string |
protected _OutputLine ( LogLevel level, string line ) : void | ||
level | LogLevel | |
line | string | |
return | void |
protected _OutputLineToConsole ( LogLevel level, string line ) : void | ||
level | LogLevel | |
line | string | |
return | void |
protected StreamWriter,System.IO _FileStream | ||
return |