Class AntHandler


  • class AntHandler
    extends java.util.logging.Handler
    JUL log handler redirecting the messages logged to Ant.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.tools.ant.Task task  
    • Constructor Summary

      Constructors 
      Constructor Description
      AntHandler​(org.apache.tools.ant.Task task)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void publish​(java.util.logging.LogRecord record)  
      private int toAntLevel​(java.util.logging.Level level)
      Convert the JUL level to the equivalent Ant one.
      • Methods inherited from class java.util.logging.Handler

        getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
      • Methods inherited from class java.lang.Object

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

      • task

        private final org.apache.tools.ant.Task task
    • Constructor Detail

      • AntHandler

        AntHandler​(org.apache.tools.ant.Task task)
    • Method Detail

      • publish

        public void publish​(java.util.logging.LogRecord record)
        Specified by:
        publish in class java.util.logging.Handler
      • flush

        public void flush()
        Specified by:
        flush in class java.util.logging.Handler
      • close

        public void close()
                   throws java.lang.SecurityException
        Specified by:
        close in class java.util.logging.Handler
        Throws:
        java.lang.SecurityException
      • toAntLevel

        private int toAntLevel​(java.util.logging.Level level)
        Convert the JUL level to the equivalent Ant one.