public class Log4JRepositoryImportLogger extends Object implements IRepositoryImportLogger
Constructor and Description |
---|
Log4JRepositoryImportLogger() |
Modifier and Type | Method and Description |
---|---|
void |
debug(Object arg0) |
void |
debug(Object arg0,
Throwable arg1) |
void |
debug(String s)
Log debug information
|
void |
endJob()
Makes an "End Import Job" log entry and releases memory associated with this log.
|
void |
error(Exception e)
Log error information
|
void |
error(Object arg0) |
void |
error(Object arg0,
Throwable arg1) |
void |
error(String s)
Log an error.
|
void |
fatal(Object arg0) |
void |
fatal(Object arg0,
Throwable arg1) |
boolean |
hasLogger()
Allows a class to check if an ImportLogger has been instantiated for the current thread.
|
void |
info(Object arg0) |
void |
info(Object arg0,
Throwable arg1) |
void |
info(String s)
Log informational data.
|
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
setCurrentFilePath(String currentFilePath)
Registers the file being worked on.
|
void |
startJob(OutputStream outputStream,
String importRootPath,
org.apache.log4j.Level logLevel)
Initiates an import job.
|
void |
trace(Object arg0) |
void |
trace(Object arg0,
Throwable arg1) |
void |
warn(Object arg0) |
void |
warn(Object arg0,
Throwable arg1) |
void |
warn(String s) |
public void startJob(OutputStream outputStream, String importRootPath, org.apache.log4j.Level logLevel)
IRepositoryImportLogger
startJob
in interface IRepositoryImportLogger
outputStream
- Will receive the html content of the logimportRootPath
- The root import dir receiving the importlogLevel
- The log level to be logged.public void endJob()
IRepositoryImportLogger
endJob
in interface IRepositoryImportLogger
public void setCurrentFilePath(String currentFilePath)
IRepositoryImportLogger
setCurrentFilePath
in interface IRepositoryImportLogger
currentFilePath
- path to file being importedpublic void info(String s)
IRepositoryImportLogger
info
in interface IRepositoryImportLogger
s
- The information message to be logged.public void error(String s)
IRepositoryImportLogger
error
in interface IRepositoryImportLogger
s
- The Error message to be logged.public void debug(String s)
IRepositoryImportLogger
debug
in interface IRepositoryImportLogger
s
- The debug message to be loggedpublic void warn(String s)
public void error(Exception e)
IRepositoryImportLogger
error
in interface IRepositoryImportLogger
e
- The exception to be logged.public boolean hasLogger()
IRepositoryImportLogger
hasLogger
in interface IRepositoryImportLogger
public void debug(Object arg0)
debug
in interface org.apache.commons.logging.Log
public void debug(Object arg0, Throwable arg1)
debug
in interface org.apache.commons.logging.Log
public void error(Object arg0)
error
in interface org.apache.commons.logging.Log
public void error(Object arg0, Throwable arg1)
error
in interface org.apache.commons.logging.Log
public void fatal(Object arg0)
fatal
in interface org.apache.commons.logging.Log
public void fatal(Object arg0, Throwable arg1)
fatal
in interface org.apache.commons.logging.Log
public void info(Object arg0)
info
in interface org.apache.commons.logging.Log
public void info(Object arg0, Throwable arg1)
info
in interface org.apache.commons.logging.Log
public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.commons.logging.Log
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.commons.logging.Log
public boolean isFatalEnabled()
isFatalEnabled
in interface org.apache.commons.logging.Log
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.commons.logging.Log
public boolean isTraceEnabled()
isTraceEnabled
in interface org.apache.commons.logging.Log
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.commons.logging.Log
public void trace(Object arg0)
trace
in interface org.apache.commons.logging.Log
public void trace(Object arg0, Throwable arg1)
trace
in interface org.apache.commons.logging.Log
public void warn(Object arg0)
warn
in interface org.apache.commons.logging.Log
Copyright © 2019 Hitachi Vantara. All rights reserved.