File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j

 
Ashwini alvekod
Greenhorn
Posts: 2
  • 0
  • 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: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • 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)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic