3 May 2002 16:54
Re: Using browser to view XMLLayout log file?
Michael Agroskin <agroskin <at> ptd.net>
2002-05-03 14:54:11 GMT
2002-05-03 14:54:11 GMT
Couple mistakes. You have to specify the namespace "log4j" because you are using the namespace prefix. And another mistake. Your XML is missing the top object so the Web browser won't show it anyway . In order to be viewed in the web browser, it should look something like this: <?xml version="1.0"?> <TopObject xmlns:log4j="http://URL"> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 1]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 2]]></log4j:message> </log4j:event> </TopObject> where "TopObject" could be any name ("Log", "List", "Document", or anything else) , and URL should point to the "log4j" datadictionary (description of all tags). Or you can include the datadictionary in the beginning of the file and call it "log4j". Or you can get rid of "log4j" prefixes, then you won't need "xmlns" at all:(Continue reading)
RSS Feed