Package com.isode.logging
Class javadsapimsgLoggingHandler
java.lang.Object
java.util.logging.Handler
com.isode.logging.javadsapimsgLoggingHandler
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.LEVEL | Isode log system severity |
---|---|
FINEST | debug |
FINER | debug |
FINE | detail |
CONFIG | information |
INFO | information |
WARNING | warning |
SEVERE | error |
anything worse | critical |
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This method is abstract in the base class and so must be implemented, but does nothing.void
flush()
This method is abstract in the base class and so must be implemented, but does nothing.boolean
Overrides superclass: all messages are "loggable" so far as the handler is concerned.void
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
javadsapimsgLoggingHandler
public javadsapimsgLoggingHandler()
-
-
Method Details
-
close
This method is abstract in the base class and so must be implemented, but does nothing.- Specified by:
close
in classHandler
- Throws:
SecurityException
-
flush
public void flush()This method is abstract in the base class and so must be implemented, but does nothing. -
publish
-
isLoggable
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 classHandler
-