问题
I can't find the Glassfish logs on windows 7. I would've expected a /glassfish/logs
folder, but having searched the glassfish directory I don't see them.
回答1:
It's inside /glassfish/domains/[domainname]/logs
where [domainname]
is the server domain name, which defaults to domain1
.
回答2:
Webnet are you running Glassfish from Netbeans?
I had the same problem expecting to find glassfish logs in C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\logs
I ended up finding them here:
D:\Users\myusername\.netbeans\7.0\config\GF3\domain1\logs
I installed glassfish along with netbeans and run it from within that ide. So it looks like because I am running within Netbeans it redirects the logs to that location.
回答3:
If virtualization is being performed, try:
C:\Users\(user)\AppData\Local\VirtualStore\glassfish\logs
来源:https://stackoverflow.com/questions/8468608/where-can-i-find-glassfish-logs-on-windows-7