Class FormattedLogger

  • All Implemented Interfaces:
    JDBCLogger
    Direct Known Subclasses:
    JDBCSLF4JAwareLogger, StdoutLogger

    public abstract class FormattedLogger
    extends java.lang.Object
    implements JDBCLogger
    stdout, and file logger all use the same format so we descend from this class. also, they all have to do the get and setLastEntry stuff so we go ahead and do the work here.
    • Constructor Summary

      Constructors 
      Constructor Description
      FormattedLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLastEntry()  
      void logSQL​(long threadId, java.lang.String dataSourceID, int connectionId, java.lang.String now, long elapsed, java.lang.String category, java.lang.String prepared, java.lang.String sql)  
      void setLastEntry​(java.lang.String inVar)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormattedLogger

        public FormattedLogger()
    • Method Detail

      • logSQL

        public void logSQL​(long threadId,
                           java.lang.String dataSourceID,
                           int connectionId,
                           java.lang.String now,
                           long elapsed,
                           java.lang.String category,
                           java.lang.String prepared,
                           java.lang.String sql)
        Specified by:
        logSQL in interface JDBCLogger
      • setLastEntry

        public void setLastEntry​(java.lang.String inVar)