Howdy,
Look in the JBoss log for errors initializing log4j.  Turn
-Dlog4j.debug=true to see log4j internal debugging output.  Try
different paths for your File argument, e.g. d:\jboss\errors.log or
d://jboss/errors.log.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: sriram [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 8:56 AM
>To: '[EMAIL PROTECTED]'
>Subject: Log file location
>
>Hi,
>
>I am unable to set log file location. I searched the forum for old
messages
>and found some. I tried the way it was mentioned in those messages, but
>still my problem is not solved.
>
>My log4j.properties file is as follows:
>
>log4j.rootCategory=WARN, dest1, R
>log4j.appender.dest1=org.apache.log4j.ConsoleAppender
>log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
>log4j.appender.dest1.layout.ConversionPattern=%-5p: %m%n
>
>#### appender writes to a file
>log4j.appender.R=org.apache.log4j.RollingFileAppender
>log4j.appender.R.layout=org.apache.log4j.PatternLayout
>log4j.appender.R.layout.ConversionPattern=%-5p: %m%n
>log4j.appender.R.File=d:/jboss/errors.log
>
>
>I packaged  by application as .ear and deployed it on JBoss running on
Win
>2000.
>
>When I run the application, I can see the log messages on JBoss
console,
>but these messages are not getting stored in the file I've specified
>(d:/jboss/errors.log).
>
>What could be the problem? In fact, initially I tried
>${jboss.home}/errors.log, but it didn't work. So I thought of hard
coding
>the file location and tried it out. Still the same problem.
>
>Can someone please suggest a solution?
>
>Thanks
>Sriram
>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to