|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.logging.LoggerImpl
public class LoggerImpl
Constructor Summary | |
---|---|
LoggerImpl(PluginInterface _pi)
|
Method Summary | |
---|---|
void |
addAlertListener(LogAlertListener listener)
Add a listener to be informed of any alerts to be displayed to users. |
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(LogAlertListener listener)
Remove a previously added alert listener. |
void |
removeAlertListener(LoggerAlertListener listener)
Remove previously added AlertListener. |
void |
removeFileLoggingListener(FileLoggerAdapter listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggerImpl(PluginInterface _pi)
Method Detail |
---|
public PluginInterface getPluginInterface()
Logger
getPluginInterface
in interface Logger
public LoggerChannel getChannel(java.lang.String name)
Logger
getChannel
in interface Logger
name
- Name of LoggerChannel
public LoggerChannel getTimeStampedChannel(java.lang.String name)
Logger
getTimeStampedChannel
in interface Logger
name
- Name of LoggerChannel
public LoggerChannel getNullChannel(java.lang.String name)
Logger
getNullChannel
in interface Logger
name
- Name of LoggerChannel
public LoggerChannel[] getChannels()
Logger
getChannels
in interface Logger
public void addAlertListener(LoggerAlertListener listener)
Logger
Logger.addAlertListener(LogAlertListener)
,
as it is more flexible.
addAlertListener
in interface Logger
listener
- Listener to addLogger.addAlertListener(LogAlertListener)
public void removeAlertListener(LoggerAlertListener listener)
Logger
removeAlertListener
in interface Logger
listener
- LoggerAlertListener to removepublic void addAlertListener(LogAlertListener listener)
Logger
addAlertListener
in interface Logger
public void removeAlertListener(LogAlertListener listener)
Logger
removeAlertListener
in interface Logger
public void addFileLoggingListener(FileLoggerAdapter listener)
addFileLoggingListener
in interface Logger
public void removeFileLoggingListener(FileLoggerAdapter listener)
removeFileLoggingListener
in interface Logger
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |