File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem with log4j" Watch "Problem with log4j" New topic

Problem with log4j

Jaaouane Aymen

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

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

log4j.rootLogger=INFO, stdout, fedexday, FILE

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

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

endswel shui
Ranch Hand

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


yes, type some code in your app, is better
just demo to simulate is ok
I agree. Here's the link:
subject: Problem with log4j
Similar Threads
log4j updating wrong file
log4j File-Name
Question: How to let different loggers write to different log files?
Log4j Grouping application logs
Logging into different files based on parameters