Package net.sourceforge.pmd.util.log
Class AntLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- net.sourceforge.pmd.util.log.AntLogHandler
-
public class AntLogHandler extends java.util.logging.Handler
AntLogHandler sends log messages to an Ant Task, so the regular Ant logging is used.- Author:
- Wouter Zelle
-
-
Constructor Summary
Constructors Constructor Description AntLogHandler(org.apache.tools.ant.Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
java.util.logging.Level
getAntLogLevel()
void
publish(java.util.logging.LogRecord logRecord)
-
-
-
Method Detail
-
getAntLogLevel
public java.util.logging.Level getAntLogLevel()
-
publish
public void publish(java.util.logging.LogRecord logRecord)
- Specified by:
publish
in classjava.util.logging.Handler
-
close
public void close() throws java.lang.SecurityException
- Specified by:
close
in classjava.util.logging.Handler
- Throws:
java.lang.SecurityException
-
flush
public void flush()
- Specified by:
flush
in classjava.util.logging.Handler
-
-