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
Показать файл Открыть проект

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

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