C# Class SteamBot.Log

Show file Open project: natoshi/steamdogebot

Public Properties

Property Type Description
DefaultConsoleColor ConsoleColor
OutputToConsole LogLevel

Protected Properties

Property Type Description
_Bot string
_FileStream System.IO.StreamWriter

Public Methods

Method Description
Debug ( string data ) : void
Dispose ( ) : void
Error ( string data ) : void
Info ( string data ) : void
Interface ( string data ) : void
Log ( string logFile, string botName = "", LogLevel output = LogLevel.Info ) : System
Success ( string data ) : void
Warn ( string data ) : void

Protected Methods

Method Description
_LogColor ( LogLevel level ) : ConsoleColor
_LogLevel ( LogLevel level ) : string
_OutputLine ( LogLevel level, string line ) : void
_OutputLineToConsole ( LogLevel level, string line ) : void

Method Details

Debug() public method

public Debug ( string data ) : void
data string
return void

Dispose() public method

public Dispose ( ) : void
return void

Error() public method

public Error ( string data ) : void
data string
return void

Info() public method

public Info ( string data ) : void
data string
return void

Interface() public method

public Interface ( string data ) : void
data string
return void

Log() public method

public Log ( string logFile, string botName = "", LogLevel output = LogLevel.Info ) : System
logFile string
botName string
output LogLevel
return System

Success() public method

public Success ( string data ) : void
data string
return void

Warn() public method

public Warn ( string data ) : void
data string
return void

_LogColor() protected method

protected _LogColor ( LogLevel level ) : ConsoleColor
level LogLevel
return ConsoleColor

_LogLevel() protected method

protected _LogLevel ( LogLevel level ) : string
level LogLevel
return string

_OutputLine() protected method

protected _OutputLine ( LogLevel level, string line ) : void
level LogLevel
line string
return void

_OutputLineToConsole() protected method

protected _OutputLineToConsole ( LogLevel level, string line ) : void
level LogLevel
line string
return void

Property Details

DefaultConsoleColor public property

public ConsoleColor DefaultConsoleColor
return ConsoleColor

OutputToConsole public property

public LogLevel OutputToConsole
return LogLevel

_Bot protected property

protected string _Bot
return string

_FileStream protected property

protected StreamWriter,System.IO _FileStream
return System.IO.StreamWriter