Class LoggerImpl

  • All Implemented Interfaces:
    Logger

    public class LoggerImpl
    extends java.lang.Object
    implements Logger
    • Field Detail

      • channels

        private java.util.List channels
      • alert_listeners_map

        private java.util.Map alert_listeners_map
      • alert_listeners_map2

        private java.util.Map alert_listeners_map2
    • Method Detail

      • getPluginInterface

        public PluginInterface getPluginInterface()
        Description copied from interface: Logger
        Retrieve the PluginInterface
        Specified by:
        getPluginInterface in interface Logger
        Returns:
        PluginInterface object
      • getChannel

        public LoggerChannel getChannel​(java.lang.String name)
        Description copied from interface: Logger
        Create a normal logging channel. Multiple calls to this method with the same name parameter results in different channels.
        Specified by:
        getChannel in interface Logger
        Parameters:
        name - Name of LoggerChannel
        Returns:
        a new LoggerChannel
      • getTimeStampedChannel

        public LoggerChannel getTimeStampedChannel​(java.lang.String name)
        Description copied from interface: Logger
        Create a timestamped logging channel. Multiple calls to this method with the same name parameter results in different channels.
        Specified by:
        getTimeStampedChannel in interface Logger
        Parameters:
        name - Name of LoggerChannel
        Returns:
        a new LoggerChannel
      • getNullChannel

        public LoggerChannel getNullChannel​(java.lang.String name)
        Description copied from interface: Logger
        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
        Specified by:
        getNullChannel in interface Logger
        Parameters:
        name - Name of LoggerChannel
        Returns:
        a new LoggerChannel
      • getChannels

        public LoggerChannel[] getChannels()
        Description copied from interface: Logger
        Retrieve all the channels that have been created for all plugins.
        Specified by:
        getChannels in interface Logger
        Returns:
        Array of LoggerChannel objects
      • removeAlertListener

        public void removeAlertListener​(LoggerAlertListener listener)
        Description copied from interface: Logger
        Remove previously added AlertListener.
        Specified by:
        removeAlertListener in interface Logger
        Parameters:
        listener - LoggerAlertListener to remove
      • addAlertListener

        public void addAlertListener​(LogAlertListener listener)
        Description copied from interface: Logger
        Add a listener to be informed of any alerts to be displayed to users.
        Specified by:
        addAlertListener in interface Logger