ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark <>
Subject Controlling log4j output from ant
Date Wed, 10 Apr 2013 08:01:43 GMT
Hi All,

I am having trouble controlling the output from ant to log4j. This is my

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="debug">
      <Console name="CONSOLE" target="SYSTEM_OUT">
         <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
      <File name="LOGFILE" fileName="log/helloWorld.log">
         <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
      <Asynch name="ASYNC">
         <appender-ref ref="LOGFILE"/>
         <appender-ref ref="CONSOLE"/>
      <root level="info">
         <appender-ref ref="ASYNC"/>

And this is my build.xml:

<project default="helloWorld">
    <target name="helloWorld">
        <echo message="Hello World"/>

The build.xml outputs one line, the logger is set to INFO.. but I see 87
lines of output in my log (only 14 lines of which appear to be INFO)!

What have I missed that lets all those DEBUGs come through?

I also posted this yesterday on

Thanks for any assistance!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message