This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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
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: 515
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
 
 
subject: Problem with log4j