Log4J + Glass Fish

Posted by Devon C. Miller on December 1, 2012 in Java |

Some things are just there to aggravate you. I deployed my new webapp, hit the page, and I got an error. No problem, I popped open the Glass Fish admin console and brought up the log. What do you mean no records found?

It seems Glass Fish will show you that your log files exist, but will only show the contents if the file is in Glass Fish’s format. So I started digging…

This is the pattern you need to use for your output file to be parseable by Glass Fish:

Copyright © 2011-2017 Experimental.Jar All rights reserved.
This site is using the Desk-Mess-Mine Child-Theme, v1.0.0, on top of
the Parent-Theme Desk Mess Mirrored, v2.5, from BuyNowShop.com