This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Log4j" Watch "Log4j" New topic
Author

Log4j

Ashwini alvekod
Greenhorn

Joined: Jun 20, 2012
Posts: 2
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26499
    
  78

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)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Log4j
 
Similar Threads
Hibernate+GWT problem related to slf4j
Slf4j - Log4j Not Work
Doubt in Hibernate Sample Application
Not able to save logs into .log file
Error when I deploy a war in Tomcat / jboss