Class Logger
java.lang.Object
org.jpos.util.Logger
- All Implemented Interfaces:
Configurable, LogProducer
Peer class Logger forwards LogEvents generated by LogSources
to LogListeners.
This little tutorial give you additional information on how to extend the jPOS's Logger subsystem.
This little tutorial give you additional information on how to extend the jPOS's Logger subsystem.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NRPREFIX
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
getConfiguration
-
setConfiguration
- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException
-
addListener
- Specified by:
addListenerin interfaceLogProducer
-
removeListener
- Specified by:
removeListenerin interfaceLogProducer
-
removeAllListeners
- Specified by:
removeAllListenersin interfaceLogProducer
-
log
-
setName
-
destroy
destroy logger -
getLogger
-
getName
-
hasListeners
Used by heavy used methods to avoid LogEvent creation- Returns:
- true if Logger has associated LogListsners
-