Class javadsapimsgLoggingHandler

java.lang.Object
java.util.logging.Handler
com.isode.logging.javadsapimsgLoggingHandler

public class javadsapimsgLoggingHandler extends Handler
This class provides a Handler which when attached to a Logger which will cause messages to be sent to the Isode logging system using the javadsapimsg facility. Messages are filtered as follows:
Logger.LEVELIsode log system severity
FINESTdebug
FINERdebug
FINEdetail
CONFIGinformation
INFOinformation
WARNINGwarning
SEVEREerror
anything worsecritical

This log handler always publishes messages, regardless of what level it's set to. The underlying Isode log subsystem will make the decision about whether any particular message actually logged.

Author:
nh
  • Constructor Details

    • javadsapimsgLoggingHandler

      public javadsapimsgLoggingHandler()
  • Method Details

    • close

      public void close() throws SecurityException
      This method is abstract in the base class and so must be implemented, but does nothing.
      Specified by:
      close in class Handler
      Throws:
      SecurityException
    • flush

      public void flush()
      This method is abstract in the base class and so must be implemented, but does nothing.
      Specified by:
      flush in class Handler
    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • isLoggable

      public boolean isLoggable(LogRecord r)
      Overrides superclass: all messages are "loggable" so far as the handler is concerned. It's up to the Isode logging system to decide whether they actually end up being sent anywhere.
      Overrides:
      isLoggable in class Handler