On Feb 7, 2006, at 10:48 PM, Rahul wrote:
Hi Curt,
You said when configuration file (log4j.xml in my case) is used for
configuring log4j, the configuration file reader will call the
activateOptions().
But what needs to be written in configuration file which will tell
the configuration fi
Hi Curt,
You said when configuration file (log4j.xml in my case) is used for
configuring log4j, the configuration file reader will call the
activateOptions().
But what needs to be written in configuration file which will tell the
configuration file reader to call activateOptions() ?
I did tha
applying resetConfiguration to the LoggerRepository before reconfiguring will
resolve this.
dirk
On Tuesday 07 February 2006 22:02, DeSantis, MJ Mark @ IS (7179) wrote:
> This is more of a "just out of curiousity" type question.
>
> When I configure log4j in the code (using the JoranConfigurator
This is more of a "just out of curiousity" type question.
When I configure log4j in the code (using the JoranConfigurator) with an xml
file. I get what you would expect - all my appenders and such defined in the
xml file are instanciated. If I decide to reconfigure log4j using the same
xml config
One other question: I noticed that LoggingEvent does not have a
timestamp that indicates when the event was logged. I can get a
timestamp from the JMS message itself. However, I was hoping that, if I
used both a FileAppender and JMSAppender, I would have access to a
single timestamp value that al
On Feb 7, 2006, at 8:21 AM, Bender Heri wrote:
No. You should call it in code after having assigned new values to
appender properties.
Heri
When configuring log4j using a configuration file, you are not
responsible for calling activateOptions(), the configuration file
reader will call
Quoting Zsolt <[EMAIL PROTECTED]>:
> If that worked I would use it:
> >${catalina.home}/logs/some.log
>
Have you set CATALINA_HOME as an OS environment variable? That's what Tomcat's
.bat and .sh batch startup files, and service.bat Windows service installer use
to set the value for catalina.hom
If that worked I would use it:
>${catalina.home}/logs/some.log
Zsolt
>
>On 2/7/06, Zsolt <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative
>> filenames to get the log files under tomcat/logs?
>>
>> Zsolt
>>
>>
>>
>> -
James is right, as usual. Log4j config files are always looked up in the
default package and will be looked up according to the classloader behavior you
are using. For instance, here's how I set up my Tomcat server...
common/classes/log4j.xml
common/lib/log4j.jar
I use the above for the server
I use WinXP, and I've never seen any message about the "Tomcat Native library",
so you'll have to ping the tomcat-user list for info on that.
I'm not sure about the SysLogAppender either. I've never used it. Doesn't it
require a native (C++) library to be installed? Try something slightly less
I second James' suggestion. However, if you really want to use relative paths,
then you need to know what directory the VM is starting from. This depends on
how you are starting Tomcat. I'll assume you are using plain vanilla Tomcat,
not Tomcat bundled with JBoss or some other such package.
If
OK, thanks for your help.
I was under the apparent misconception that the layout formatted message
would be placed in the renderedMessage field of LoggingEvent before
serializing it. But, through experimentation, it appears that
renderedMessage contains the same information as the message field.
For automatic configuration it should be in the classpath. Put it in
the shared classpath (i.e. tomcat/common/classes) if you want to
configure every app. Put it in your app classpath (i.e.
WEB-INF/classes) if you want to configure only your app. Where you
put it affects where your log4j.jar sho
Use something like:
${catalina.home}/logs/some.log
On 2/7/06, Zsolt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative
> filenames to get the log files under tomcat/logs?
>
> Zsolt
>
>
>
> -
In your first request you said you "want to change the log file of my
application at runtime". The activateOptions() should be called there.
If you dont really change this in your code, then I dont understand your
question. You have to explain more. (but I have no idea of struts).
Heri
> -Or
I am using log4j in my struts application.
And only code I have written in my classes is
Logger logger=Logger.getLogger(ClassName.class); which creates a logger
instance
then
logger.info("some log");
Where should I call activateOptions() and how to invoke that piece of code?
Bender Heri wrote:
No. You should call it in code after having assigned new values to appender
properties.
Heri
> -Original Message-
> From: Rahul [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 07, 2006 3:20 PM
> To: log4j-user@logging.apache.org
> Subject: activateOptions() in RollingFileAppender
>
>
Hi all,
I want to change the log file of my application at runtime, for which I
need to call activateOptions() on RollingFileAppender.
This is how my log4j.xml looks like:
http://jakarta.apache.org/log4j/";>
* *
Is this the correc
Jacob Kjome wrote:
"commons-logging-api.jar" should be in CATALINA_HOME/bin. "commons-logging.jar"
and log4j.jar should be in CATALINA_HOME/common/lib. Do *not* put
"commons-logging.jar" in the "bin" directory, only "commons-logging-api.jar".
Do you still have the CNFE problem? If you still d
Hi Kameron,
In case you are using an application server with your system, I would
suggest you place your log4j configuration file in the app. servers
configuration directory. For example, in case of using JBoss, you may
place it jboss-4.0.1sp1\server\..\conf directory.
Hope that helps,
Norbert
O
I've searched wide for the answer of where to put the log4j.properties file
in a J2EE system. It's kind of sad to me that none of the articles begins
to address this really essential part of the set up.
in one obscure post, someone said a "quick fix" was to put it in one of the
extension classloa
Hi,
I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative
filenames to get the log files under tomcat/logs?
Zsolt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Should fix Jake's problems, along with other things (see commit msg for
details).
I don't like how I left what settings were being persisted (didn't persist
table column model but built a new list using it). If you want to tweak
things, go for it.
I was hoping locationInfo would work with cha
23 matches
Mail list logo