I'd like to make a log4j output file that is XML and give it a root element. Hence, I'd like it to start with a tag and end with a tag.
What do I put in my log4j.xml to make this happen?
Right now, all I have is this:
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="logs/file.log" />
<param name="Append" value="false" />
<param name="MaxFileSize" value="5000KB" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>