Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » log4j warnings
log4j warnings [message #5220] Tue, 02 December 2008 22:56 Go to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
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] Wed, 03 December 2008 03:22 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
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 17:11 Go to previous messageGo to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
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] Sun, 10 January 2010 02:53 Go to previous message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
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: Wed Dec 08 12:39:07 GMT 2021

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

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

Back to the top