Package org.tentackle.maven
Class MavenLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- org.tentackle.maven.MavenLogHandler
-
public class MavenLogHandler extends 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, Level minLevel)Creates a maven log handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidpublish(LogRecord record)-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Constructor Detail
-
MavenLogHandler
public MavenLogHandler(org.apache.maven.plugin.logging.Log log, Level minLevel)Creates a maven log handler.- Parameters:
log- the maven loggerminLevel- the minimum logging level
-
-
Method Detail
-
close
public void close() throws SecurityException- Specified by:
closein classHandler- Throws:
SecurityException
-
-