Reputation: 15692
This module is great for logging... it produces XML files like this:
<?xml version="1.0" encoding="WINDOWS-1252"?>
<!DOCTYPE log SYSTEM "logger.dtd">
-<log>
-<record>
<date>2016-07-08T19:24:29</date>
<millis>1468002269560</millis>
<sequence>0</sequence>
<logger>java.lang.Class</logger>
<level>INFO</level>
<class>root.LoggingTest2</class>
<method>main</method>
<thread>1</thread>
<message># logging this message...</message>
</record>
</log>
... is there a simple freeware app to let me display this XML stuff in a convenient, human-readable form? Or do I have to write it myself?
Upvotes: 1
Views: 2266
Reputation: 15692
A very well thought-out approach to java.util.logging, which includes a solution to viewing the XML files, can be found here: http://www.forward.com.au/javaProgramming/javaGuiTips/javaLogging.html
... however, reading around the subject, the pros make a good case for not using java.util.logging (JUL), but instead something like SLF4J and Logback...
Upvotes: 1