Carol Enderlin wrote:Is the log file getting created? It is usually a good idea to include a root category/logger, have you tried that?
Thanks Carol, after adding root category it started logging. However, I'm confused on the location of the log file.
I placed my log4j.xml in /WEB-INF/classes and have my log file path set to
and have my web app deployed in GlassFish server. The application is deployed under %GLASS_FISH%/domains/domain1/eclipseApps/MyApp and was expecting my log to be under MyApp/Log folder. But it created the log under %GLASS_FISH%/domains/domain1/config. I did not understand this. Any advice.
Joined: Oct 10, 2000
In my experience (not with GlassFish), with a relative path the log file will be created relative to the directory the server starts up in. Sounds like log files created with a relative path are created in domainname/config for GlassFish (google search).
Carol Enderlin wrote:In my experience (not with GlassFish), with a relative path the log file will be created relative to the directory the server starts up in.
And imagining that the server's current working directory will be the WEB-INF directory of one of the applications running in that server (or in fact any directory related to that application)` is quite unrealistic.