Hello all,
A bit late, I'm afraid, but since I just got an off-list question about
it, and that it was a problem for me, maybe it can help others in the
future.
Hope it helps you, Tim, if not, don't hesitate to subscribe and post to
the list, there are many people that can help you better than
Now I'm wondering if this is the problem we had and the dirty fix we used
was exactly that - dirty!
Tim.
- Original Message -
From: "Laurent Blume" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1
Shapira, Yoav wrote:
Howdy,
Neither in the JSPs nor the servlet: take Jacob's advice about the
ServletContextListener, it's a good one.
Ok, I got it!
I didn't know about that, I'm still quite a newbie at JSPs.
Created my class implementing ServletContextListener, put it in web.xml
of my app, rest
PM
>To: Log4J Users List
>Subject: Re: log4j losing log files
>
>Jacob Kjome wrote:
>
>> Are you calling LogManager.shutdown() at application shutdown? If
not,
>> try that, otherwise, the file will probably remain locked by the VM.
Do
>> this in a servlet context lis
Jacob Kjome wrote:
Are you calling LogManager.shutdown() at application shutdown? If not,
try that, otherwise, the file will probably remain locked by the VM. Do
this in a servlet context listener contextDestroyed() method.
No, I'm not, and it's a good idea.
But I'm unsure if it's possible to
At 01:31 PM 10/29/2003 +0100, you wrote:
I could reproduce the problem: it happened right after I reload the apps
using the Manager app, using the URL:
https://myserver/manager/reload?path=/webapp
I could do this several times. After a Tomcat start/stop, the logging and
rotating works. After a r
More data on my problem.
I could reproduce the problem: it happened right after I reload the apps
using the Manager app, using the URL:
https://myserver/manager/reload?path=/webapp
I could do this several times. After a Tomcat start/stop, the logging
and rotating works. After a reload, the curr
- Original Message -
From: "Laurent Blume" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 6:27 AM
Subject: Re: log4j losing log files
> Tim Williams wrote:
>
> > I just joined the list so I missed the orig
Thanks for your help!
It's not fixed yet, see below for my actions so far:
Shapira, Yoav wrote:
Add -Dlog4j.debug=true to your JAVA_OPTS when launching tomcats. Log4j
will then output internal debugging information to
$CATALINA_HOME/logs/catalina.out. Perhaps that will tell you something
useful
Tim Williams wrote:
I just joined the list so I missed the original post.
Is this about Log4J not rolling over files properly with the
RollingFileAppender?
Yep!
We ended up writing a modified version because for some reason it held locks
and wouldn't 'rollover' properly, so we lost the log files.
know if this is what you are experiencing and I'll dig out the code.
Also, what operating system are you running on?
Regards,
Tim.
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday
Howdy,
I don't have a solution to your problem, just a couple of
points/questions. ;)
>The log4j1.2.8.jar file is in each webapp/WEB-INF/lib.
>Each webapp has its own config file in webapp/WEB-INF/classes.
Good.
>Each config file contains:
>
>log4j.rootLogger=DEBUG
>log4j.logger.dev=DEBUG, de
Hello all,
I hope this is not too much of a newbie question. I did look through the
documentation and on the internet, but I might have not done it the
right way.
Anyway, here is the problem:
I'm using log4j 1.2.8 in several webapps, for each it is inside a class
used by several JSPs.
The app
13 matches
Mail list logo