public class DBScriptTimingAppender extends AppenderAdapter implements org.apache.log4j.Appender, ICConstants
This class logs SQL statements,
This application uses this class to create the UpdateDB log
file.,
Starts the timer,
Ends the timer and records the script time.,
This tells the log to close the file.IC_ALLREPAIRS, IC_CANCEL, IC_CHECK, IC_CHECKDONE, IC_NOTAPPLY, IC_REPAIR, IC_REPORT, IC_TENANT| Constructor and Description |
|---|
DBScriptTimingAppender()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
_doAppend(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
void |
doAppend(org.apache.log4j.spi.LoggingEvent event) |
static void |
setup()
Depending on the value of the SCRIPTTIMINGS variable, setup the
logging for script timing.
|
addFilter, clearFilters, getErrorHandler, getFilter, getLayout, getName, listException, requiresLayout, setErrorHandler, setLayout, setName, setupLoggingpublic DBScriptTimingAppender()
throws java.lang.Exception
The - file where to write the log.java.lang.Exceptionpublic void close()
close in interface org.apache.log4j.Appenderclose in class AppenderAdapterpublic void doAppend(org.apache.log4j.spi.LoggingEvent event)
doAppend in interface org.apache.log4j.AppenderdoAppend in class AppenderAdapterpublic void _doAppend(org.apache.log4j.spi.LoggingEvent event)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void setup()
throws java.lang.Exception
outdir - Where to create the log files.java.io.IOExceptionjava.lang.Exception