Class QueryLogger


  • public final class QueryLogger
    extends java.lang.Object
    Provides a logging facility for a Query
    Author:
    Andrew Varley
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.Object lock  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void log​(Query q, java.io.Writer w)
      Allows a Query to be logged
      • Methods inherited from class java.lang.Object

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

      • lock

        protected static java.lang.Object lock
    • Method Detail

      • log

        public static void log​(Query q,
                               java.io.Writer w)
                        throws java.io.IOException
        Allows a Query to be logged
        Parameters:
        q - a Query to be logged
        w - the Writer on which to log the Query
        Throws:
        java.io.IOException - if unable to log correctly