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
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
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
Have you configured the log4j.properties or log4j.xml? is it in the
classpath?
2011/4/23 Jonathan Camilleri
> Hi,
>
> Any idea why my logger is not logging (see *Deck.java)*. Error message:
>
> log4j:WARN No appenders could be found for logger (poker.Deck).
> log4j:WARN Please initialize the lo
Thanks very much for your reply!
Michael Erskine wrote:
>
> Hi Ray,
>
> I suggest you read the "Default Initialization Procedure" section of the
> log4j manual at http://logging.apache.org/log4j/1.2/manual.html to get
> yourself acquainted with how log4j searches for your configuration.
>
>
Hi Ray,
I suggest you read the "Default Initialization Procedure" section of the log4j
manual at http://logging.apache.org/log4j/1.2/manual.html to get yourself
acquainted with how log4j searches for your configuration.
If all else fails you can use -Dlog4j.configuration="
C:/eclipse/workspace
James,
thanks! That was the problem. I's just that when using FileMonitor I could
see that log4j.properties file was picked up by the process from WEB-INF
and I thought that was OK. After putting it to classes folder it works.
Regards!
James A. N. Stauffer wrote:
>
> I think log4j.properties
I think log4j.properties should be in WEB-INF/classes
On Fri, Apr 11, 2008 at 3:07 AM, Brokenbone <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm trying to configure log4j in my web application (built with Oracle ADF
> (JSF)). I've copied the jar into WEB-INF/lib folder, created
> log4j.properties f
Thanks Jake,it worked.
Bitap
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 9:26 AM
To: Log4J Users List
Subject: Re: No appenders could be found for logger
So, you are saying, eventually, after your code using
PropertyConfgurator runs
So, you are saying, eventually, after your code using PropertyConfgurator
runs, that logging starts working as you expect. But you are still worried
about seeing the warning message before you configurator runs? Keep in
mind that static loggers may be instantiated and used to log before your
March 22, 2004 9:00 AM
> To: Log4J Users List
> Subject: Re: No appenders could be found for logger()
>
>
> The name of the class is BasicTimerTask. I renamed it for
> posting. It works
> fine before the web application is reloaded. All other
> servlets and JSPs
> w
nothing wrong with log4j.properties because everything else works
fine.
Antony Paul
- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 7:13 PM
Subject: Re: No appenders could be
What does your properties file look like? Did you provide an appender in
the root logger or did you just define a logger for BasicTimerTask and give
it an appender? Actually, shouldn't that logger be named "MyTimeTask", not
"BasicTimerTask" or was that a typo?
Jake
At 03:23 PM 3/22/2004 +053
16 matches
Mail list logo