- logging to console is not possible, since java intercepts all console ouput and writes it to the logg... Creates a loop that fills th console. I have not found any way to turn this off, please drop me a line if you find one..
- logging to file with the standard XMLFormatter (the default if you dont change the configuration) produces (almost) an xml file.
- The 'XML' file has encoding "MacRoman" , which I have never heard of, but it seems like it is almost standard. Safari (Apple's own browser) does not know it, and complains 'Unsupported encoding MacRoman'. Firefox does not complain about the encoding however.
- The 'XML' file has a root tag of <log>. There is no closing tag, so it's an invalid xml. If you want to open the file in Firefox you have to add </log> by hand.
- If you print xml strings to your log (which we do) the XMLFormatter tries to escape them, but does not succeed, so you might have to remove them.
Wednesday, July 02, 2008
Mac Java logging
Continued with the java logging work, specially on the mac. Found the following:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment