Package org.pentaho.platform.api.util
Interface IRepositoryExportLogger
- All Superinterfaces:
org.apache.commons.logging.Log
public interface IRepositoryExportLogger
extends org.apache.commons.logging.Log
-
Method Summary
Modifier and TypeMethodDescriptionvoidLog debug informationvoidendJob()Makes an "End Import Job" log entry and releases memory associated with this log.voidLog error informationvoidLog an error.booleanAllows a class to check if an ImportLogger has been instantiated for the current thread.voidLog informational data.voidstartJob(OutputStream outputStream, org.apache.logging.log4j.Level logLevel) Initiates an import job.voidstartJob(OutputStream outputStream, org.apache.logging.log4j.Level logLevel, org.apache.logging.log4j.core.StringLayout layout) Initiates an import job.Methods inherited from interface org.apache.commons.logging.Log
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
Method Details
-
startJob
void startJob(OutputStream outputStream, org.apache.logging.log4j.Level logLevel, org.apache.logging.log4j.core.StringLayout layout) Initiates an import job. Each call creates a new log associated with the current thread.- Parameters:
outputStream- Will receive the html content of the loglogLevel- The log level to be logged.layout- The layout to be use.
-
startJob
Initiates an import job. Each call creates a new log associated with the current thread.- Parameters:
outputStream- Will receive the html content of the loglogLevel- The log level to be logged.
-
endJob
void endJob()Makes an "End Import Job" log entry and releases memory associated with this log. -
info
Log informational data. Should be called when the starting a new file and when finishing that file.- Parameters:
s- The information message to be logged.
-
error
Log an error.- Parameters:
s- The Error message to be logged.
-
debug
Log debug information- Parameters:
s- The debug message to be logged
-
error
Log error information- Parameters:
e- The exception to be logged.
-
hasLogger
boolean hasLogger()Allows a class to check if an ImportLogger has been instantiated for the current thread.- Returns:
- true if the logger is present.
-