[
https://issues.apache.org/jira/browse/HADOOP-4757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654874#action_12654874
]
Alex Loddengaard commented on HADOOP-4757:
------------------------------------------
These are great questions, Jakob. Let me answer what I can now. The more
difficult questions will require some research on my part:
{quote}
For the DRFA and TLA appenders, shouldn't it be ConversionPattern rather than
ConversationPattern?
{quote}
Yes, this was a typo on my behalf. Good catch!
{quote}
There are several appenders included in the default log4j.properites that are
not enabled by default (c.f. RFA), which are not included in the log4j.xml. To
minimize issues with users who may be enabling and using them, should these be
converted as well?
{quote}
These appenders are commented out in the .properties file, which made me think
they were deprecated. If people are using them, then I totally agree that they
should be included in the XML file. Another good catch.
{quote}
Does the build.xml file need to be modified to remove the reference to the
log4j.properties and a new one to log4j.xml be inserted?
{quote}
>From the testing I did, no. As long as the log4j.properties file is not in
>the CLASSPATH (removed from $HADOOP_HOME/conf) and the log4j.xml file is, then
>log4j.xml will be used.
Again, I'll do some research and fiddling and respond to your other questions.
Thanks, Jakob!
> Replace log4j.properties with log4j.xml
> ---------------------------------------
>
> Key: HADOOP-4757
> URL: https://issues.apache.org/jira/browse/HADOOP-4757
> Project: Hadoop Core
> Issue Type: Improvement
> Reporter: Alex Loddengaard
> Assignee: Alex Loddengaard
> Priority: Minor
> Attachments: log4j_xml_config.patch, log4j_xml_config_v2.patch
>
>
> Certain log4j features are not configurable via the log4j.properties file,
> not to mention the log4j.properties file is messy. For this reason, we
> should transition to a XML file to configure log4j. The .properties vs. .xml
> argument has only come up in HADOOP-211, where the XML configuration was
> vetoed for Tomcat integration issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.