C# 클래스 IrcShark.Logger

The Logger class is the entrypoint to the logging system of IrcShark.
Logging a message is quite easy: simply call the Log method with the give IrcShark.LogMessage. The message is then send to all log writers by fireing the LoggedMessage event.
상속: IDisposable
파일 보기 프로젝트 열기: hapm/IrcShark

공개 메소드들

메소드 설명
Debug ( string channel, int id, string message ) : void

Logs a debug message to the given channel.

Dispose ( ) : void

Disposes the Logger instance.

Error ( string channel, int id, string message ) : void

Logs an error message to the given channel.

Info ( string channel, int id, string message ) : void

Logs an info message to the given channel.

Log ( LogMessage msg ) : void

Logs a new message to the logging system.

Logger ( IrcSharkApplication app ) : System

Initializes a new instance of the Logger class.

Warning ( string channel, int id, string message ) : void

Logs a warning message to the given channel.

보호된 메소드들

메소드 설명
Dispose ( bool disposed ) : void

Disposes the Logger instance.

비공개 메소드들

메소드 설명
MessageWatcher ( ) : void

Method called of logThread.

메소드 상세

Debug() 공개 메소드

Logs a debug message to the given channel.
public Debug ( string channel, int id, string message ) : void
channel string The channel to log to.
id int The id of the message to log.
message string The text message to log.
리턴 void

Dispose() 공개 메소드

Disposes the Logger instance.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes the Logger instance.
protected Dispose ( bool disposed ) : void
disposed bool If true, the managed resources are disposed too.
리턴 void

Error() 공개 메소드

Logs an error message to the given channel.
public Error ( string channel, int id, string message ) : void
channel string The channel to log to.
id int The id of the message to log.
message string The text message to log.
리턴 void

Info() 공개 메소드

Logs an info message to the given channel.
public Info ( string channel, int id, string message ) : void
channel string The channel to log to.
id int The id of the message to log.
message string The text message to log.
리턴 void

Log() 공개 메소드

Logs a new message to the logging system.
public Log ( LogMessage msg ) : void
msg LogMessage /// The to log. ///
리턴 void

Logger() 공개 메소드

Initializes a new instance of the Logger class.
public Logger ( IrcSharkApplication app ) : System
app IrcSharkApplication /// The , this Logger logs messages for. ///
리턴 System

Warning() 공개 메소드

Logs a warning message to the given channel.
public Warning ( string channel, int id, string message ) : void
channel string The channel to log to.
id int The id of the message to log.
message string The text message to log.
리턴 void