Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j

 
Ashwini alvekod
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
H,

I'm implementing Log4j in application.
downloaded log4j,slf4j-log4j and slf4j-api and build the path
created log4j.properties

I changed build.xml and build.properties file also.....

but, when i run my application it use to create blank .log file inside my application instead of printing error...

help me... how to implement log4j concept in struts..
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your log4j properties file and a sample class that uses it. (just the package name and lines of code that log; not a long Struts class)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic