Created
January 9, 2012 15:34
-
-
Save mikemichaelis/1583437 to your computer and use it in GitHub Desktop.
NLog config to log output formatted to log4j XML (includes xml header and namespace)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target xsi:type="File" name="file" fileName="file.xml"> | |
<layout xsi:type="LayoutWithHeaderAndFooter"> | |
<header xsi:type="SimpleLayout" text="<?xml version="1.0" encoding="utf-8" ?><root xmlns:log4j="http://jakarta.apache.org/log4j/">"/> | |
<layout xsi:type="Log4JXmlEventLayout" /> | |
<footer xsi:type="SimpleLayout" text="</root>"/> | |
</layout> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment