Class LogsXMLLoader

java.lang.Object
org.serviceconnector.web.xml.AbstractXMLLoader
org.serviceconnector.web.xml.LogsXMLLoader
All Implemented Interfaces:
IXMLLoader

public class LogsXMLLoader extends AbstractXMLLoader
The Class LogXMLLoader.
  • Constructor Details

    • LogsXMLLoader

      public LogsXMLLoader()
      Instantiates a new default xml loader.
  • Method Details

    • loadBody

      public final void loadBody(XMLStreamWriter writer, IWebRequest request) throws Exception
      Load body.
      Specified by:
      loadBody in interface IXMLLoader
      Specified by:
      loadBody in class AbstractXMLLoader
      Parameters:
      writer - the writer
      request - the request
      Throws:
      Exception - the exception the exception
    • writeLogger

      public void writeLogger(XMLStreamWriter writer, ch.qos.logback.classic.Logger logger, Date today, Date current) throws XMLStreamException
      Write logger.
      Parameters:
      writer - the writer
      logger - the logger
      today - the today
      current - the current
      Throws:
      XMLStreamException - the xML stream exception
    • getCurrentLogFiles

      protected List<String> getCurrentLogFiles()
      Gets the current log files.
      Returns:
      the current log files
    • addLogFiles

      protected void addLogFiles(ch.qos.logback.classic.Logger logger, List<String> logFileList)
      Adds the log files.
      Parameters:
      logger - the logger
      logFileList - the log file list