The fix is so simple. LogManager loads the properties file using the URL. I
just provided file url and it was all done. Thanks for your help, Jacob.
-Abbas
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza [EMAIL
classpath?
Thanks,
Abbas
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza [EMAIL
PROTECTED]
Sent: Thursday, September 28, 2006 2:43:23 PM
Subject: Re: log4j doesn't log files when weblogic is run as a windows service
see
this output. It should turn up in Weblogic's console log file.
Jake
Quoting Mirza Abbas Raza [EMAIL PROTECTED]:
So, Jake, here is what I did but didn't succeed.
Excerpt from log4j.properties file.
# Specify the R log file
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza [EMAIL
PROTECTED]
Sent: Wednesday, September 27, 2006 1:38:12 PM
Subject: Re: log4j doesn't log files when weblogic is run as a windows service.
It's probably that the config file never gets put
?
Thanks,
Abbas
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza
[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 11:57:20 AM
Subject: Re: log4j doesn't log files when weblogic is run as a windows
service
All,
The log4j framework doesn't seem to write to the logs when weblogic is run as
windows service. As I understand, the two things needed for the log4j framework
are:
- log4j.jar in classpath
- log4j.properties as -Dlog4j.configuration. It contains the necessary
configuration for logging.
@logging.apache.org; Mirza Abbas Raza [EMAIL
PROTECTED]
Sent: Monday, September 18, 2006 11:57:20 AM
Subject: Re: log4j doesn't log files when weblogic is run as a windows service.
I'll bet they *do* get created. You just don't know where to look. What does
your config look like? Does it use relative