org.gudy.azureus2.plugins.logging
Interface Logger


public interface Logger

Logging utilities class

Since:
2.0.7.0

Method Summary
 void addAlertListener(LoggerAlertListener listener)
          Add LoggerAlertListener for all alerts raised
 void addFileLoggingListener(FileLoggerAdapter listener)
           
 LoggerChannel getChannel(java.lang.String name)
          Create a normal logging channel.
 LoggerChannel[] getChannels()
          Retrieve all the channels that have been created for all plugins.
 LoggerChannel getNullChannel(java.lang.String name)
          Create a logger channel that doesn't output to the standard AZ log.
 PluginInterface getPluginInterface()
          Retrieve the PluginInterface
 LoggerChannel getTimeStampedChannel(java.lang.String name)
          Create a timestamped logging channel.
 void removeAlertListener(LoggerAlertListener listener)
          Remove previously added Alert Listener
 void removeFileLoggingListener(FileLoggerAdapter listener)
           
 

Method Detail

getChannel

LoggerChannel getChannel(java.lang.String name)
Create a normal logging channel. Multiple calls to this method with the same name parameter results in different channels.

Parameters:
name - Name of LoggerChannel
Returns:
a new LoggerChannel
Since:
2.0.7.0

getTimeStampedChannel

LoggerChannel getTimeStampedChannel(java.lang.String name)
Create a timestamped logging channel. Multiple calls to this method with the same name parameter results in different channels.

Parameters:
name - Name of LoggerChannel
Returns:
a new LoggerChannel
Since:
2.3.0.0

getNullChannel

LoggerChannel getNullChannel(java.lang.String name)
Create a logger channel that doesn't output to the standard AZ log. Add listeners to it if output needs to be routed somewhere. Multiple calls to this method with the same name parameter results in different channels

Parameters:
name - Name of LoggerChannel
Returns:
a new LoggerChannel
Since:
2.3.0.0

getChannels

LoggerChannel[] getChannels()
Retrieve all the channels that have been created for all plugins.

Returns:
Array of LoggerChannel objects
Since:
2.1.0.0

getPluginInterface

PluginInterface getPluginInterface()
Retrieve the PluginInterface

Returns:
PluginInterface object
Since:
2.3.0.0

addAlertListener

void addAlertListener(LoggerAlertListener listener)
Add LoggerAlertListener for all alerts raised

Parameters:
listener - Listener to add
Since:
2.3.0.6

removeAlertListener

void removeAlertListener(LoggerAlertListener listener)
Remove previously added Alert Listener

Parameters:
listener - LoggerAltertListener to remove
Since:
2.3.0.6

addFileLoggingListener

void addFileLoggingListener(FileLoggerAdapter listener)

removeFileLoggingListener

void removeFileLoggingListener(FileLoggerAdapter listener)