ppkarwasz opened a new pull request, #192: URL: https://github.com/apache/ant/pull/192
This PR adds a Log4j2 build listener as a modern alternative to the obsolete Log4j 1.x listener. The Log4j2 listener differs in some choices from the Log4j counterpart. Most notably: * the name of the loggers use follows the pattern `project_name.target_name.task_name`, * the class name of the Java object that performs the logging is recorded in the `className` property of the location info (`%C` in the pattern layout of Log4j2 Core), * the name of the build file and the current line number are recorded in the corresponding properties of the location info (`%F` and `%L`), * `VERBOSE` is not mapped to `DEBUG`, but a custom level is used. The Log4j2 listener can be used as `BuildLogger`, but the level change feature works only if the underlying Log4j2 API implementation is Log4j2 Core. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org