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.

    Fred Toussi (fredt@users dot
    • Constructor Summary

      Constructor Description
      SimpleLog​(java.lang.String path, int level, boolean isSQL)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      int getLevel() getPrintWriter()  
      void logContext​(int atLevel, java.lang.String message)  
      void logContext​(int atLevel, java.lang.String prefix, java.lang.String message, java.lang.String suffix)  
      void logContext​(java.lang.Throwable t, java.lang.String message, int atLevel)  
      void setLevel​(int level)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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()