File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Log4j Configurations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log4j Configurations" Watch "Log4j Configurations" New topic

Log4j Configurations

Eddie Howard

Joined: Jul 27, 2006
Posts: 14

Hopefully someone can help me.

I want to configure log4j from a properties file.

I am writing a little java application. I have several log4j appenders and everything works well. However I want the option to exit application if ANY of log4j configuration fails.

By default I am seeing a warning message from Log4j but application continues to run...

Do you know of a property to set for log4j that application exits if log4j properties are not not correct?

OR should I attempt this programmicatally.


The men of Ireland were hurling when the gods of Greece were young
I agree. Here's the link:
subject: Log4j Configurations
It's not a secret anymore!