wood burning stoves 2.0
The moose likes Glassfish and the fly likes Start domain in debug mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Glassfish
Bookmark "Start domain in debug mode" Watch "Start domain in debug mode" New topic

Start domain in debug mode

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967

How can I see debug logs in the server log file? I'm starting a domain using the --debug option, but I do not see any debug information printed in the server log files. All I see are just INFO logs. Is there a way that I can see the server debug log files? The reason is that I'm trying to deploy a Play framework based Webapp to Glassfish and for some strange reason, I cannot get it to work. So I wanted to see what is happening when the server loads my Webapp. From the log files, everything sees normal, no exception nothing. I can also see that my Webapp is loaded and I also confirmed it once again in the admin console. But when I try to hit the URL to my Webapp, all I get is a 404. Very strange and irritating. Any ideas?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
K. Tsang

Joined: Sep 13, 2007
Posts: 3042

You should able to change the logging level in that logging.properties file in <glassfish_home>/glassfish/domains/domain1/config

No restart is required. Maybe you want to redeploy after the logging change. Glassfish 3 logging

The default is INFO. Please consult the link above to identify exactly which key/label to change.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
I agree. Here's the link: http://aspose.com/file-tools
subject: Start domain in debug mode
It's not a secret anymore!