Dear All,
Is it possible to configure multiple loggers, logging to the same appender?
e.g.
log4j.logger.com.xxx.automation.flatfile=DEBUG, AUTOMATION
log4j.logger.com.xxx.automation.service=DEBUG, AUTOMATION
Where AUTOMATION is an appender?
In my example, I am only seeing loggin from the com.
i recommend you to read the whole manual
http://logging.apache.org/log4j/1.2/manual.html
The solution was in "how to configure appender" (from mind)
However, read all and you will be very glad about this lecture, I promise
On Sun, Apr 24, 2011 at 5:41 PM, Jonathan Camilleri
wrote:
> Would you k
Hi,
Is there a parameter setting available for configuring Max Backups stored on
the disk for DailyRollingFileAppender?
I have a jboss instance running and am trying to configure log4j.xml file to
limit number of backups stored on the disk. I went through some blogs and
found a parameter “Max
Thanks, now I just need to find a way to make file logging work, even,
though it's specified in my log4j.properties.
Thanks for your help.
On 24 April 2011 14:13, Christian Grobmeier wrote:
> > What do you mean by additivity flag?
> please read the link i sent
> > I've noticed that replacing th
> What do you mean by additivity flag?
please read the link i sent
> I've noticed that replacing the
> _log.debug with System.out.println() does not result in the same error:
Yes - of course. Your property file shows 2 appenders logging to the
cmd, the root logger and the consoleAppender.
If you
What do you mean by additivity flag? I've noticed that replacing the
_log.debug with System.out.println() does not result in the same error:
...
System.out.println(playerOne);
...
Output
Player One holds the following cards: THREE of DIAMONDS KING of DIAMONDS
whilst...
...
_log.debug(playerTwo +
Hey Jonathan,
the log4j configuration is more of interest for your case. However, as
you now got output, I assume the logging itself is working.
Your double entries - for that i am pretty sure - come from the additivity flag.
Please go to: http://logging.apache.org/log4j/1.2/manual.html
and sear
-- Forwarded message --
From: Jonathan Camilleri
Date: 24 April 2011 13:17
Subject: Re: No appenders could be found for logger (poker.Deck) [WARN]
To: Christian Grobmeier
Cc:
Well thanks for the information about *pom.xml*, I'm trying to stick with
log4j.properties, so I'm attac
Hello Jonathan,
this message appears when the log4j.xml|properties file could not be
found on your classpath.
Usually it should be at src/main/resources, this folder visible as
classpath folder on eclipse.
However you can start your app with -Dlog4j.debug=true to spot out at
which locations your