Skip to main content



      Home
Home » Eclipse Projects » SWTBot » log4j warnings
log4j warnings [message #5220] Tue, 02 December 2008 17:56 Go to next message
Eclipse UserFriend
Hi,

I just created some dummy SWTBotTestCases to check out. So far SWTBot
looks very promising for testing our Eclipse based application.

I noticed in the Eclipse Console View that there are some log4j
warnings. Not being familiar with log4j yet, is this something that
SWTBot should resolve or something that I may need to correct in my
Eclipse installation?

The warnings:
log4j:WARN No appenders could be found for logger
(net.sf.swtbot.matcher.AbstractMatcher).
log4j:WARN Please initialize the log4j system properly.

Thanks,
Joe
Re: log4j warnings [message #5285 is a reply to message #5220] Tue, 02 December 2008 22:22 Go to previous messageGo to next message
Eclipse UserFriend
This happens when log4j can't find a log.xml.

See http://swtbot.sourceforge.net/faq.html#logging for info on how to
fix this.

On 3/12/08 04:26, Joe Luebker wrote:
> Hi,
>
> I just created some dummy SWTBotTestCases to check out. So far SWTBot
> looks very promising for testing our Eclipse based application.
>
> I noticed in the Eclipse Console View that there are some log4j
> warnings. Not being familiar with log4j yet, is this something that
> SWTBot should resolve or something that I may need to correct in my
> Eclipse installation?
>
> The warnings:
> log4j:WARN No appenders could be found for logger
> (net.sf.swtbot.matcher.AbstractMatcher).
> log4j:WARN Please initialize the log4j system properly.
>
> Thanks,
> Joe
Re: log4j warnings [message #6053 is a reply to message #5285] Wed, 03 December 2008 12:11 Go to previous messageGo to next message
Eclipse UserFriend
Ketan Padegaonkar wrote:
> This happens when log4j can't find a log.xml.
>
> See http://swtbot.sourceforge.net/faq.html#logging for info on how to
> fix this.
>
> On 3/12/08 04:26, Joe Luebker wrote:
>> Hi,
>>
>> I just created some dummy SWTBotTestCases to check out. So far SWTBot
>> looks very promising for testing our Eclipse based application.
>>
>> I noticed in the Eclipse Console View that there are some log4j
>> warnings. Not being familiar with log4j yet, is this something that
>> SWTBot should resolve or something that I may need to correct in my
>> Eclipse installation?
>>
>> The warnings:
>> log4j:WARN No appenders could be found for logger
>> (net.sf.swtbot.matcher.AbstractMatcher).
>> log4j:WARN Please initialize the log4j system properly.
>>
>> Thanks,
>> Joe
>

Thanks for pointing me to the faq Ketan. Adding the logging xml file
corrected the warnings. I am encountering some IllegalArgumentExceptions
related to the logging now. I will add another posting for that issue.

Joe
Re: log4j warnings [message #506791 is a reply to message #6053] Sat, 09 January 2010 21:53 Go to previous message
Eclipse UserFriend
I struggled with this a bit, so in case this can help someone in the future... if your tests are declared in plugin fragments hosted in the tested plugin, you need to put the "Eclipse-Buddy" declaration in the plugin's MANIFEST; it seems that putting it in the fragment's manifest doesn't make a difference.

franck102
Previous Topic:headless swtbot does not find testproject
Next Topic:releaseDate
Goto Forum:
  


Current Time: Mon May 12 17:45:49 EDT 2025

Powered by FUDForum. Page generated in 0.02930 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top