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, setupLogging
public DBScriptTimingAppender() throws java.lang.Exception
The
- file where to write the log.java.lang.Exception
public void close()
close
in interface org.apache.log4j.Appender
close
in class AppenderAdapter
public void doAppend(org.apache.log4j.spi.LoggingEvent event)
doAppend
in interface org.apache.log4j.Appender
doAppend
in class AppenderAdapter
public void _doAppend(org.apache.log4j.spi.LoggingEvent event) throws java.sql.SQLException
java.sql.SQLException
public static void setup() throws java.lang.Exception
outdir
- Where to create the log files.java.io.IOException
java.lang.Exception