At 05:14 PM 20/07/2001, [EMAIL PROTECTED] wrote:
>thanks for the answers ..
>
>if i decide to use only one log4j.properties with tomcat , where can i put
>this log4j.properties file
>and how can i use logging system in my beans ?   in every bean's method i
>have to set like that
>
>
>PropertyConfigurator.configure("/usr/local/tomcat/conf/log4j.properties");
>
>???
>
>
>i have confused, because log4j documents  aren't  very clear especially the
>tomcat part
>so if anyone can send me simple and short example i will be glad ..


Have you read the documentation for log4j 1.1.3? In the 'Introductory 
manual' there is a section titled 'Default Initialization under 
Tomcat'  that contains the following :

Example 4
The Windows shell command
    set TOMCAT_OPTS=-Dlog4j.configuration=file:/c:/foobar.lcf
tells log4j to use the file c:\foobar.xml as the default configuration 
file. The configuration file is fully specified by the URL 
file:/c:/foobar.lcf. Thus, the same configuration file will be used for all 
web-applications -- in other words, disaster waiting to happen.

Use at your own peril!

Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to