I want to create a customized log viewer and I need to integrate log files generated in .Net and Java platforms. First of All I want to know if I could write log events into a well-formed xml format with SLF4J or logback. Any Idea?
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- I want to trace logs using a Macro multi parameter
相关文章
- how do I log requests and responses for debugging
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Android Studio doesn't display logs by package
- Fragment Content Overlaps Toolbar and Bottom Navig
- Getting “Error: Missing Constraints in ConstraintL
logback-classic supports the log4j XML layout. See here: http://logback.qos.ch/manual/layouts.html
Regarding SLF4J: it is a logging facade, rather than a logger. It provides a convenient way to decouple your logging API from the implementation, allowing you to change the actual logging library later. However, it won't log anything else itself, so you can't configure it to use XML.
If you want to use The SLF4J API and logback to perform the actual logging, you will need the appropriate logback binding jar. You can find it on the SLF4J web site.
You might take a look at one of my answers to a similar problem. It's about log4j, but it's valid for logback as well.