Class LogService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class LogService
    extends ServiceConfig
    Manage logs
    Author:
    pgarcia
    • Constructor Detail

      • LogService

        public LogService​(QueryUtil queryUtil,
                          BaseConfigProperties baseConfigProperties)
        Autowired constructor
        Parameters:
        queryUtil - Query utilities
        baseConfigProperties - Base configuration properties
    • Method Detail

      • getLogList

        public ServiceData getLogList​(String fileName,
                                      String date,
                                      String startTime,
                                      String endTime)
                               throws AWException
        Get log files sorted
        Parameters:
        fileName - Log file
        date - Log date
        startTime - Start time
        endTime - End time
        Returns:
        Log list
        Throws:
        AWException - Error retrieving log list
      • getLogPath

        public String getLogPath()
        Retrieve log path
        Returns:
        Log path
      • logChangeDatabase

        public void logChangeDatabase​(String database)
        Log a database change
        Parameters:
        database - New database