C# Class 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.
Inheritance: IDisposable
Afficher le fichier Open project: hapm/IrcShark

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposed ) : void

Disposes the Logger instance.

Private Methods

Méthode Description
MessageWatcher ( ) : void

Method called of logThread.

Method Details

Debug() public méthode

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.
Résultat void

Dispose() public méthode

Disposes the Logger instance.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

Error() public méthode

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.
Résultat void

Info() public méthode

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.
Résultat void

Log() public méthode

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

Logger() public méthode

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

Warning() public méthode

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.
Résultat void