Class Log4JRepositoryImportLogger

    • Constructor Detail

      • Log4JRepositoryImportLogger

        public Log4JRepositoryImportLogger()
    • Method Detail

      • startJob

        public void startJob​(OutputStream outputStream,
                             String importRootPath,
                             org.apache.logging.log4j.Level logLevel)
        Description copied from interface: IRepositoryImportLogger
        Initiates an import job. Each call creates a new log associated with the current thread.
        Specified by:
        startJob in interface IRepositoryImportLogger
        Parameters:
        outputStream - Will receive the html content of the log
        importRootPath - The root import dir receiving the import
        logLevel - The log level to be logged.
      • setCurrentFilePath

        public void setCurrentFilePath​(String currentFilePath)
        Description copied from interface: IRepositoryImportLogger
        Registers the file being worked on. Each log entry will list the path to the file being processed. Call this method just before processing the next file. It will automatically post a "Start File Import" entry in the log.
        Specified by:
        setCurrentFilePath in interface IRepositoryImportLogger
        Parameters:
        currentFilePath - path to file being imported
      • info

        public void info​(String s)
        Description copied from interface: IRepositoryImportLogger
        Log informational data. Should be called when the starting a new file and when finishing that file.
        Specified by:
        info in interface IRepositoryImportLogger
        Parameters:
        s - The information message to be logged.
      • warn

        public void warn​(String s)
      • hasLogger

        public boolean hasLogger()
        Description copied from interface: IRepositoryImportLogger
        Allows a class to check if an ImportLogger has been instantiated for the current thread.
        Specified by:
        hasLogger in interface IRepositoryImportLogger
        Returns:
        true if the logger is present.
      • debug

        public void debug​(Object arg0)
        Specified by:
        debug in interface org.apache.commons.logging.Log
      • debug

        public void debug​(Object arg0,
                          Throwable arg1)
        Specified by:
        debug in interface org.apache.commons.logging.Log
      • error

        public void error​(Object arg0)
        Specified by:
        error in interface org.apache.commons.logging.Log
      • error

        public void error​(Object arg0,
                          Throwable arg1)
        Specified by:
        error in interface org.apache.commons.logging.Log
      • fatal

        public void fatal​(Object arg0)
        Specified by:
        fatal in interface org.apache.commons.logging.Log
      • fatal

        public void fatal​(Object arg0,
                          Throwable arg1)
        Specified by:
        fatal in interface org.apache.commons.logging.Log
      • info

        public void info​(Object arg0)
        Specified by:
        info in interface org.apache.commons.logging.Log
      • info

        public void info​(Object arg0,
                         Throwable arg1)
        Specified by:
        info in interface org.apache.commons.logging.Log
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.apache.commons.logging.Log
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.apache.commons.logging.Log
      • isFatalEnabled

        public boolean isFatalEnabled()
        Specified by:
        isFatalEnabled in interface org.apache.commons.logging.Log
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.apache.commons.logging.Log
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.apache.commons.logging.Log
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.apache.commons.logging.Log
      • trace

        public void trace​(Object arg0)
        Specified by:
        trace in interface org.apache.commons.logging.Log
      • trace

        public void trace​(Object arg0,
                          Throwable arg1)
        Specified by:
        trace in interface org.apache.commons.logging.Log
      • warn

        public void warn​(Object arg0)
        Specified by:
        warn in interface org.apache.commons.logging.Log
      • warn

        public void warn​(Object arg0,
                         Throwable arg1)
        Specified by:
        warn in interface org.apache.commons.logging.Log