com.ibm.tivoli.maximo.dbmanage.log

Class DBScriptTimingAppender

    • Constructor Detail

      • DBScriptTimingAppender

        public DBScriptTimingAppender()
                               throws java.lang.Exception
        Constructor
        Parameters:
        The - file where to write the log.
        Throws:
        java.lang.Exception
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface org.apache.log4j.Appender
        Overrides:
        close in class AppenderAdapter
      • doAppend

        public void doAppend(org.apache.log4j.spi.LoggingEvent event)
        Specified by:
        doAppend in interface org.apache.log4j.Appender
        Overrides:
        doAppend in class AppenderAdapter
      • _doAppend

        public void _doAppend(org.apache.log4j.spi.LoggingEvent event)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setup

        public static void setup()
                          throws java.lang.Exception
        Depending on the value of the SCRIPTTIMINGS variable, setup the logging for script timing.
        Parameters:
        outdir - Where to create the log files.
        Throws:
        java.io.IOException
        java.lang.Exception