Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j Configurations

 
Eddie Howard
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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.

--
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic