ObjectWeb Lomboz for JavaEE Development Version: 3.3
I am trying to setup logging in my project correctly for my enterprise application.
I have three modules:
These are all module dependencies for my root project folder.
So if i have logging in each module where does the log4j.properties file go? Does it have to go into the src directory of each project or can it be somehow placed in the root folder and delegated/linked to the underlying modules?
Your client will have one classpath, as defined in the applet tag (assuming it's an applet).
The EJB has its own internal classpath, which has it's container classpath appended to it.
The Utility will also have its own classpath.
Expect to need a log4j properties (or log4j.xml) in each one. It may be an identical copy of the other 2 log4j files, or it may be customized for the component in question, but each classpath must include a log4j properties file, located at the root level (for example, in the WEB-INF/classes directory of a WAR).
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Mar 19, 2005
Thanks tim, that is the way i have it setup, log4j.properties in each module and running unit tests, logs are created fine in eclipse.
Websphere ND 184.108.40.206
This is more of a websphere deployment question but it still relates to the log. When i deploy my enterprise application in websphere, if i go to my WAS_ROOT\profiles... \installedApps\ProjectName.ear all i see is my jar files, how can i see the logs i create without looking inside the jars?
I know there is a properties folder at WAS_ROOT\profiles\AppSrv01 level and if i place my log4j.properties in here my log files get created at the AppSrv01 level, is there another way to view my logs at my project directory location.
Maybe it is just log4j.appender.C.File value i have to change.