I’m working with Log4Net under my 3.5 SP1 Web Project and I need to know how can I (reads Log4Net) create the log file as a xml file instead text, line by line…
I’m thinking that can be a easy thing, but… I can’t find the trick to apply 🙁
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can use the xml layout (http://logging.apache.org/log4net/release/sdk/log4net.Layout.XmlLayout.html), however that does not generate a well formed xml file, the root node will be missing. So you need to do add the root node, before you open it in any xml aware tool.