Package org.onebusaway.util.logging.impl
Class LoggingServiceImpl
- java.lang.Object
-
- org.onebusaway.util.logging.impl.LoggingServiceImpl
-
- All Implemented Interfaces:
LoggingService
public class LoggingServiceImpl extends Object implements LoggingService
Default implementation ofLoggingService
- Author:
- abelsare
-
-
Constructor Summary
Constructors Constructor Description LoggingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
log(String component, org.apache.logging.log4j.Level priority, String message)
Logs the given message to central log location.void
setConfigurationServiceClient(ConfigurationServiceClient configurationServiceClient)
InjectsConfigurationServiceClient
-
-
-
Method Detail
-
log
public String log(String component, org.apache.logging.log4j.Level priority, String message)
Description copied from interface:LoggingService
Logs the given message to central log location. Makes an API call to TDM which in turn persists this message in the database.- Specified by:
log
in interfaceLoggingService
- Parameters:
component
- The chef component/role that initiated this actionpriority
- message priority/severitymessage
- the actual message to log- Returns:
- response from remote server
-
setConfigurationServiceClient
@Autowired public void setConfigurationServiceClient(ConfigurationServiceClient configurationServiceClient)
InjectsConfigurationServiceClient
- Parameters:
configurationServiceClient
- the configurationServiceClient to set
-
-