Package com.adaptris.core.services
Class LoggingService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.LoggingServiceImpl
-
- com.adaptris.core.services.LoggingService
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Log a message to the log file; useful for debugging", tag="service,logging,debug") public class LoggingService extends LoggingServiceImpl
Log some arbitrary information.In the adapter configuration file this class is aliased as logging-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adaptris.core.services.LoggingServiceImpl
LoggingServiceImpl.LoggingLevel
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description LoggingService()
LoggingService(LoggingServiceImpl.LoggingLevel level, java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doService(AdaptrisMessage msg)
Apply the service to the message.java.lang.String
getText()
void
setText(java.lang.String s)
-
Methods inherited from class com.adaptris.core.services.LoggingServiceImpl
closeService, getLogCategory, getLogger, getLogLevel, initService, prepare, setLogCategory, setLogLevel, slf4jLogger, withLogCategory
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Constructor Detail
-
LoggingService
public LoggingService()
-
LoggingService
public LoggingService(LoggingServiceImpl.LoggingLevel level, java.lang.String text)
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
Description copied from interface:Service
Apply the service to the message.
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s- See Also:
#doService(com.adaptris.core.AdaptrisMessage)
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String s)
-
-