Class MavenLogHandler


  • public class MavenLogHandler
    extends java.util.logging.Handler
    Log handler that redirects java.util logging to the maven logger.
    By default, all tentackle logging goes to the java util logger and the logs below WARN level are not of big interest during the build.
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenLogHandler​(org.apache.maven.plugin.logging.Log log, java.util.logging.Level minLevel)
      Creates a maven log handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void publish​(java.util.logging.LogRecord record)  
      • 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
    • Constructor Detail

      • MavenLogHandler

        public MavenLogHandler​(org.apache.maven.plugin.logging.Log log,
                               java.util.logging.Level minLevel)
        Creates a maven log handler.
        Parameters:
        log - the maven logger
        minLevel - the minimum logging level
    • 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