C# Class SteamChatBot.Log

Inheritance: IDisposable
Afficher le fichier Open project: Steam-Chat-Bot/SteamChatBot

Méthodes publiques

Свойство Type Description
DefaultConsoleColor ConsoleColor
FileLogLevel LogLevel
OutputLevel LogLevel

Protected Properties

Свойство Type Description
_FileStream System.IO.StreamWriter
_botName string

Méthodes publiques

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

Méthodes protégées

Méthode Description
_LogColor ( LogLevel level ) : ConsoleColor
_LogLevel ( LogLevel level ) : string
_OutputLine ( LogLevel level, string line ) : void
_OutputLineToConsole ( LogLevel level, string line ) : void

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
GetLogBotName ( ) : string
Log ( string logFile, string botName = "", LogLevel consoleLogLevel = LogLevel.Info, LogLevel fileLogLevel = LogLevel.Info ) : System

Method Details

CreateInstance() public static méthode

public static CreateInstance ( string logFile, string botName, LogLevel consoleLogLevel, LogLevel fileLogLevel ) : Log
logFile string
botName string
consoleLogLevel LogLevel
fileLogLevel LogLevel
Résultat Log

Debug() public méthode

public Debug ( string data ) : void
data string
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Error() public méthode

public Error ( string data ) : void
data string
Résultat void

Info() public méthode

public Info ( string data ) : void
data string
Résultat void

Silly() public méthode

public Silly ( string data ) : void
data string
Résultat void

Verbose() public méthode

public Verbose ( string data ) : void
data string
Résultat void

Warn() public méthode

public Warn ( string data ) : void
data string
Résultat void

Write() public static méthode

public static Write ( string data ) : void
data string
Résultat void

_LogColor() protected méthode

protected _LogColor ( LogLevel level ) : ConsoleColor
level LogLevel
Résultat ConsoleColor

_LogLevel() protected méthode

protected _LogLevel ( LogLevel level ) : string
level LogLevel
Résultat string

_OutputLine() protected méthode

protected _OutputLine ( LogLevel level, string line ) : void
level LogLevel
line string
Résultat void

_OutputLineToConsole() protected méthode

protected _OutputLineToConsole ( LogLevel level, string line ) : void
level LogLevel
line string
Résultat void

Property Details

DefaultConsoleColor public_oe property

public ConsoleColor DefaultConsoleColor
Résultat ConsoleColor

FileLogLevel public_oe property

public LogLevel FileLogLevel
Résultat LogLevel

OutputLevel public_oe property

public LogLevel OutputLevel
Résultat LogLevel

_FileStream protected_oe property

protected StreamWriter,System.IO _FileStream
Résultat System.IO.StreamWriter

_botName protected_oe property

protected string _botName
Résultat string