Module org.hsqldb

Class SimpleLog


  • public class SimpleLog
    extends java.lang.Object
    Simple log for recording abnormal events in persistence

    Log levels, LOG_NONE, LOG_ERROR, and LOG_NORMAL are currently supported.

    LOG_ERROR corresponds to property value 1 and logs main database events plus any major errors encountered in operation. LOG_NORMAL corresponds to property value 2 and logs additional normal events and minor errors.

    Since:
    1.8.0
    Author:
    Fred Toussi (fredt@users dot sourceforge.net)
    • Constructor Detail

      • SimpleLog

        public SimpleLog​(java.lang.String path,
                         int level,
                         boolean isSQL)
    • Method Detail

      • getLevel

        public int getLevel()
      • setLevel

        public void setLevel​(int level)
      • getPrintWriter

        public java.io.PrintWriter getPrintWriter()
      • logContext

        public void logContext​(int atLevel,
                               java.lang.String message)
      • logContext

        public void logContext​(int atLevel,
                               java.lang.String prefix,
                               java.lang.String message,
                               java.lang.String suffix)
      • logContext

        public void logContext​(java.lang.Throwable t,
                               java.lang.String message,
                               int atLevel)
      • flush

        public void flush()
      • close

        public void close()