Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Sheriff
Posts: 35977
422
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)
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!