Class LoggerImpl
java.lang.Object
com.biglybt.pifimpl.local.logging.LoggerImpl
- All Implemented Interfaces:
Logger
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlertListener(LogAlertListener listener) Add a listener to be informed of any alerts to be displayed to users.voidaddAlertListener(LoggerAlertListener listener) Add LoggerAlertListener for all alerts raised.voidaddFileLoggingListener(FileLoggerAdapter listener) getChannel(String name) Create a normal logging channel.Retrieve all the channels that have been created for all plugins.getNullChannel(String name) Create a logger channel that doesn't output to the standard AZ log.Retrieve the PluginInterfacegetTimeStampedChannel(String name) Create a timestamped logging channel.voidremoveAlertListener(LogAlertListener listener) Remove a previously added alert listener.voidremoveAlertListener(LoggerAlertListener listener) Remove previously added AlertListener.voidremoveFileLoggingListener(FileLoggerAdapter listener)
-
Field Details
-
pi
-
channels
-
alert_listeners_map
-
alert_listeners_map2
-
-
Constructor Details
-
LoggerImpl
-
-
Method Details
-
getPluginInterface
Description copied from interface:LoggerRetrieve the PluginInterface- Specified by:
getPluginInterfacein interfaceLogger- Returns:
- PluginInterface object
-
getChannel
Description copied from interface:LoggerCreate a normal logging channel. Multiple calls to this method with the same name parameter results in different channels.- Specified by:
getChannelin interfaceLogger- Parameters:
name- Name of LoggerChannel- Returns:
- a new LoggerChannel
-
getTimeStampedChannel
Description copied from interface:LoggerCreate a timestamped logging channel. Multiple calls to this method with the same name parameter results in different channels.- Specified by:
getTimeStampedChannelin interfaceLogger- Parameters:
name- Name of LoggerChannel- Returns:
- a new LoggerChannel
-
getNullChannel
Description copied from interface:LoggerCreate 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- Specified by:
getNullChannelin interfaceLogger- Parameters:
name- Name of LoggerChannel- Returns:
- a new LoggerChannel
-
getChannels
Description copied from interface:LoggerRetrieve all the channels that have been created for all plugins.- Specified by:
getChannelsin interfaceLogger- Returns:
- Array of LoggerChannel objects
-
addAlertListener
Description copied from interface:LoggerAdd LoggerAlertListener for all alerts raised. It might be a better idea to useLogger.addAlertListener(LogAlertListener), as it is more flexible.- Specified by:
addAlertListenerin interfaceLogger- Parameters:
listener- Listener to add- See Also:
-
removeAlertListener
Description copied from interface:LoggerRemove previously added AlertListener.- Specified by:
removeAlertListenerin interfaceLogger- Parameters:
listener- LoggerAlertListener to remove
-
addAlertListener
Description copied from interface:LoggerAdd a listener to be informed of any alerts to be displayed to users.- Specified by:
addAlertListenerin interfaceLogger
-
removeAlertListener
Description copied from interface:LoggerRemove a previously added alert listener.- Specified by:
removeAlertListenerin interfaceLogger
-
addFileLoggingListener
- Specified by:
addFileLoggingListenerin interfaceLogger
-
removeFileLoggingListener
- Specified by:
removeFileLoggingListenerin interfaceLogger
-