C# 클래스 SteamChatBot.Log

상속: IDisposable
파일 보기 프로젝트 열기: Steam-Chat-Bot/SteamChatBot

공개 프로퍼티들

프로퍼티 타입 설명
DefaultConsoleColor ConsoleColor
FileLogLevel LogLevel
OutputLevel LogLevel

보호된 프로퍼티들

프로퍼티 타입 설명
_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