Two Laptop Bag*
The moose likes Other Open Source Projects and the fly likes Problem with log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem with log4j" Watch "Problem with log4j" New topic
Author

Problem with log4j

Jaaouane Aymen
Greenhorn

Joined: Sep 22, 2009
Posts: 29
Hello All,

I want to add a file appender for log4j.
i add theses lines to my log4j.properties as mentioned in log4j documentation:

log4j.rootLogger=INFO, stdout, fedexday, FILE
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.File=a.log


but alwayes i have an emty file a.log ???
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 512
Hello,
how you are using this logger in your application code?

Regards,
amit
endswel shui
Ranch Hand

Joined: Jul 03, 2008
Posts: 33
amit punekar wrote:Hello,
how you are using this logger in your application code?

Regards,
amit


yes, type some code in your app, is better
just demo to simulate is ok
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with log4j