Browse Source

deprecate Log4jListener

master
Jan Matrne 7 years ago
parent
commit
538b7c9ffe
2 changed files with 12 additions and 4 deletions
  1. +7
    -2
      manual/listeners.html
  2. +5
    -2
      src/main/org/apache/tools/ant/listener/Log4jListener.java

+ 7
- 2
manual/listeners.html View File

@@ -97,7 +97,11 @@ listeners and loggers.</p>
<tr>
<td width="33%"><code><a href="#Log4jListener">
org.apache.tools.ant.listener.Log4jListener</a></code></td>
<td width="33%">Passes events to Log4j for highly customizable logging.</td>
<td width="33%">
Passes events to Apache Log4j for highly customizable logging.<br>
<b>Deprecated:</b> Apache Log4j (1) is not developed any more. Last
release is 1.2.17 from 26-May-2012 and contains vulnerability issues.
</td>
<td width="34%">BuildListener</td>
</tr>
<tr>
@@ -364,6 +368,8 @@ Background is one of the following:


<h3><a name="Log4jListener">Log4jListener</a></h3>
<p><b>Deprecated:</b> Apache Log4j (1) is not developed any more. Last
release is 1.2.17 from 26-May-2012 and contains vulnerability issues.</p>
<p>Passes build events to Log4j, using the full classname's of the generator of
each build event as the category:</p>
<ul>
@@ -436,7 +442,6 @@ is declared at all.</p>




<h3><a name="TimestampedLogger">TimestampedLogger</a></h3>
<p>
Acts like the default logger, except that the final success/failure message also includes


+ 5
- 2
src/main/org/apache/tools/ant/listener/Log4jListener.java View File

@@ -28,9 +28,12 @@ import org.apache.tools.ant.Task;


/**
* Listener which sends events to Log4j logging system
*
* Listener which sends events to Log4j logging system.
* @deprecated Apache Log4j (1) is not developed any more. Last
* release is 1.2.17 from 26-May-2012 and contains vulnerability issues.
* Use the standard listener or your own custom listener instead.
*/
@Deprecated
public class Log4jListener implements BuildListener {

/**


Loading…
Cancel
Save