You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jacek Kempski <Ja...@camline.com> on 2002/02/13 16:05:40 UTC
double logs
Hi,
I am new to the list and newbie to log4j. We develop a web based system
using Velocity and a framework built upon it.
I have refactored the framework to use log4j using the instantiation
servlet. The framework itself talks to components through module
interfaces. Now the components log through log4j as well, quite
successfully, but our base servlet logs each message twice. I thought
this comes through extending the servlet, but it can't be the case since
the delegation model is even bigger.
Any help will be much apreciated. If this question has been asked
before, redirect me to the source please.
cheers,
jacek
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: double logs
Posted by Dan Lipofsky <da...@nuserve.com>.
I don't mind the personal opinion expressed, but I would like to
know what is bad about my design and how to fix it. I never
thought it was a great solution, but it was the only one I found.
Categories are named after the class they are used in, and appenders
were added to root until this problem came up, and now I add them
to my highest non-root level. I thought this was textbook.
- Dan
T Master <tm...@iknowledge.com> wrote:
> That just shows bad design in your Category/Logger design IMHO.
> Disclaimer: Personal opinion expressed. :D
Dan Lipofsky <da...@nuserve.com> wrote:
> > I had a similar problem with log4j and tomcat. See
> > http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg03734.html
> > and the followups and see if it helps. The key was turning off
additivity.
> > - Dan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: double logs
Posted by T Master <tm...@iknowledge.com>.
That just shows bad design in your Category/Logger design IMHO.
Disclaimer: Personal opinion expressed. :D
----- Original Message -----
From: "Dan Lipofsky" <da...@nuserve.com>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Wednesday, February 13, 2002 10:02 AM
Subject: Re: double logs
> I had a similar problem with log4j and tomcat. See
> http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg03734.html
> and the followups and see if it helps. The key was turning off additivity.
> - Dan
>
> ----- Original Message -----
> From: "Jacek Kempski" <Ja...@camline.com>
>
> > I am new to the list and newbie to log4j. We develop a web based system
> > using Velocity and a framework built upon it.
> > I have refactored the framework to use log4j using the instantiation
> > servlet. The framework itself talks to components through module
> > interfaces. Now the components log through log4j as well, quite
> > successfully, but our base servlet logs each message twice. I thought
> > this comes through extending the servlet, but it can't be the case since
> > the delegation model is even bigger.
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: double logs
Posted by Dan Lipofsky <da...@nuserve.com>.
I had a similar problem with log4j and tomcat. See
http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg03734.html
and the followups and see if it helps. The key was turning off additivity.
- Dan
----- Original Message -----
From: "Jacek Kempski" <Ja...@camline.com>
> I am new to the list and newbie to log4j. We develop a web based system
> using Velocity and a framework built upon it.
> I have refactored the framework to use log4j using the instantiation
> servlet. The framework itself talks to components through module
> interfaces. Now the components log through log4j as well, quite
> successfully, but our base servlet logs each message twice. I thought
> this comes through extending the servlet, but it can't be the case since
> the delegation model is even bigger.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: double logs
Posted by T Master <tm...@iknowledge.com>.
Not sure if you've checked this...but....
- Verify you don't have double appenders in the same Category/Logger.
-Then verify you aren't logging to different Category/Loggers that share an
Appender.
----- Original Message -----
From: "Jacek Kempski" <Ja...@camline.com>
To: <lo...@jakarta.apache.org>
Sent: Wednesday, February 13, 2002 8:05 AM
Subject: double logs
> Hi,
>
> I am new to the list and newbie to log4j. We develop a web based system
> using Velocity and a framework built upon it.
> I have refactored the framework to use log4j using the instantiation
> servlet. The framework itself talks to components through module
> interfaces. Now the components log through log4j as well, quite
> successfully, but our base servlet logs each message twice. I thought
> this comes through extending the servlet, but it can't be the case since
> the delegation model is even bigger.
>
>
> Any help will be much apreciated. If this question has been asked
> before, redirect me to the source please.
>
> cheers,
>
> jacek
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>