Package org.apache.tomcat.jakartaee
Class AntHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- org.apache.tomcat.jakartaee.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.
-
-
-
Method Detail
-
publish
public void publish(java.util.logging.LogRecord record)
- Specified by:
publish
in classjava.util.logging.Handler
-
flush
public void flush()
- Specified by:
flush
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
-
toAntLevel
private int toAntLevel(java.util.logging.Level level)
Convert the JUL level to the equivalent Ant one.
-
-