Package com.almis.awe.service
Class LogService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.LogService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Manage logs
- Author:
- pgarcia
-
Constructor Summary
ConstructorDescriptionLogService
(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptiongetLogList
(String fileName, String date, String startTime, String endTime) Get log files sortedRetrieve log pathvoid
logChangeDatabase
(String database) Log a database changeMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
LogService
Autowired constructor- Parameters:
queryUtil
- Query utilitiesbaseConfigProperties
- Base configuration properties
-
-
Method Details
-
getLogList
public ServiceData getLogList(String fileName, String date, String startTime, String endTime) throws AWException Get log files sorted- Parameters:
fileName
- Log filedate
- Log datestartTime
- Start timeendTime
- End time- Returns:
- Log list
- Throws:
AWException
- Error retrieving log list
-
getLogPath
Retrieve log path- Returns:
- Log path
-
logChangeDatabase
Log a database change- Parameters:
database
- New database
-