>William Xu
>
>
>
>
>-Original Message-
>From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 03, 2002 10:50 AM
>To: Log4J Users List
>Subject: RE: Double Logs
>
>
>I am right now using the simple logging. I will look
>at the article
. No offense
to any particular person. Just a friendly reminder.
Regards,
William Xu
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 10:50 AM
To: Log4J Users List
Subject: RE: Double Logs
I am right now using the simple logging. I will look
I am right now using the simple logging. I will look
at the article. log4j has cool configuration featues-
I will have to explore more.
Thanks
Sanjay
--- Anand M S <[EMAIL PROTECTED]> wrote:
>
> I also had the same problem, we can change this
> behaviour by setting additivity falg to false.
>
Rafael,
Yes it works:
BasicConfigurator.resetConfiguration();
Now I see only one line of log.
Sanjay
--- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> I tried: BasicConfigurator.resetConfiguration();
> It did not help,
> Sanjay
> --- Rafael Alvarez <[EMAIL PROTECTED]> wrote:
> > Hello Sanjay,
> >
> >
Sridhar Thanks.
I am not using any config. file.
My code is simply:
dialerLogger = Logger.getLogger("dialer");
dialerLevel = lvl;
logger.setLevel(dialerLevel);
BasicConfigurator.resetConfiguration();
BasicConfigurator.configure();
Now I added this new line:
BasicConfigurator.resetConfiguration();
I tried: BasicConfigurator.resetConfiguration();
It did not help,
Sanjay
--- Rafael Alvarez <[EMAIL PROTECTED]> wrote:
> Hello Sanjay,
>
> Monday, June 3, 2002, 10:49:55 AM, you wrote:
>
> SB> Hi,
> SB> I just started using log4j. I have set a basic
> logger
> SB> and I have configured it with-
I also had the same problem, we can change this behaviour by setting additivity falg
to false.
Sridharan Vembu <[EMAIL PROTECTED]> wrote: Hi Sanjay,
You might have enabled the additivty flag to true and have referred the destination
both in root and your category in your config. file. Eithe
Hi Sanjay,
You might have enabled the additivty flag to true and have referred the destination
both in root and your category in your config. file. Either diable additivity or
remove the appender from the category.
You could find a link to article "Dont use system.out.println" in log4j homepag
Hello Sanjay,
Monday, June 3, 2002, 10:49:55 AM, you wrote:
SB> Hi,
SB> I just started using log4j. I have set a basic logger
SB> and I have configured it with-
SB> BasicConfigurator.configure();
SB> I have some questions:
SB> 1. All my logs are geting printed 2 times. How to
SB> avoid this.
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
That just shows bad design in your Category/Logger design IMHO.
Disclaimer: Personal opinion expressed. :D
- Original Message -
From: "Dan Lipofsky" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 10:02 A
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" <[EMAIL PROTECTED]>
> I am new to the
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
13 matches
Mail list logo