C# Класс SteamChatBot.Log

Наследование: IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultConsoleColor ConsoleColor
FileLogLevel LogLevel
OutputLevel LogLevel

Защищенные свойства (Protected)

Свойство Тип Описание
_FileStream System.IO.StreamWriter
_botName string

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_LogColor ( LogLevel level ) : ConsoleColor
_LogLevel ( LogLevel level ) : string
_OutputLine ( LogLevel level, string line ) : void
_OutputLineToConsole ( LogLevel level, string line ) : void

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void
GetLogBotName ( ) : string
Log ( string logFile, string botName = "", LogLevel consoleLogLevel = LogLevel.Info, LogLevel fileLogLevel = LogLevel.Info ) : System

Описание методов

CreateInstance() публичный статический Метод

public static CreateInstance ( string logFile, string botName, LogLevel consoleLogLevel, LogLevel fileLogLevel ) : Log
logFile string
botName string
consoleLogLevel LogLevel
fileLogLevel LogLevel
Результат Log

Debug() публичный Метод

public Debug ( string data ) : void
data string
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Error() публичный Метод

public Error ( string data ) : void
data string
Результат void

Info() публичный Метод

public Info ( string data ) : void
data string
Результат void

Silly() публичный Метод

public Silly ( string data ) : void
data string
Результат void

Verbose() публичный Метод

public Verbose ( string data ) : void
data string
Результат void

Warn() публичный Метод

public Warn ( string data ) : void
data string
Результат void

Write() публичный статический Метод

public static Write ( string data ) : void
data string
Результат void

_LogColor() защищенный Метод

protected _LogColor ( LogLevel level ) : ConsoleColor
level LogLevel
Результат ConsoleColor

_LogLevel() защищенный Метод

protected _LogLevel ( LogLevel level ) : string
level LogLevel
Результат string

_OutputLine() защищенный Метод

protected _OutputLine ( LogLevel level, string line ) : void
level LogLevel
line string
Результат void

_OutputLineToConsole() защищенный Метод

protected _OutputLineToConsole ( LogLevel level, string line ) : void
level LogLevel
line string
Результат void

Описание свойств

DefaultConsoleColor публичное свойство

public ConsoleColor DefaultConsoleColor
Результат ConsoleColor

FileLogLevel публичное свойство

public LogLevel FileLogLevel
Результат LogLevel

OutputLevel публичное свойство

public LogLevel OutputLevel
Результат LogLevel

_FileStream защищенное свойство

protected StreamWriter,System.IO _FileStream
Результат System.IO.StreamWriter

_botName защищенное свойство

protected string _botName
Результат string