Not able to do application logging using log4j | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
30% Mid August Discount Avail now

Selenium Training Forum

Not able to do application logging using log4j

M
Post on 20/09/2015

HI,
I'm getting bellow warnings while using log4j in the selenium framework. Can you please assist me. Attached here with the framework.

If i use same log4j.properties file as stand alone java program, i'm able to do application logging. But if i include same log4j.properties file and log4j jar , in the attached frame work , i'm getting below warnings and the application logging is not successful.

log4j:WARN No appenders could be found for logger (devpinoyLogger).
log4j:WARN Please initialize the log4j system properly.

M
Reply on 21/09/2015

no need to attach the project every time most problem are generic.

have a look at q/a.

http://stackoverflow.com/questions/1140358/how-to-initialize-log4j-properly

M
Reply on 21/09/2015

Hi ,
i have already seen the link in google when i search for the error. But it could not solve it.

I have attached the project , because same log4j.properties file is working, for another project. So was wondering what went wrong with the framework_DDF project.

M
Reply on 22/09/2015

your project didn't work when I tried. it was giving an null pointer exception.

M
Reply on 24/09/2015

Its working for me, but only loogging in not happening. Can you please come on skype . I can show you.

M
Reply on 25/09/2015

yeah sure ping me on skype.

M
Reply on 25/09/2015

i pinged on qtpselenium and qtpselenium1 multiple times. But noone is responding. Can you please ping now ?
My id is : nvindraneel

M
Reply on 02/10/2015

I was going thorough your project that I found that.

"AssertJUnit.assertTrue"

is this testng project junit one?

and where is testng.xml?