wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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 log4j.properties 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: 511
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Problem with log4j
Similar Threads
Question: How to let different loggers write to different log files?
Logging into different files based on parameters
log4j File-Name
log4j updating wrong file
Log4j Grouping application logs