wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes can log4j entries exist in a file that is named anything other than log4j.properties? 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 » Frameworks » Other Application Frameworks
Bookmark "can log4j entries exist in a file that is named anything other than log4j.properties?" Watch "can log4j entries exist in a file that is named anything other than log4j.properties?" New topic
Author

can log4j entries exist in a file that is named anything other than log4j.properties?

sunya kumre
Greenhorn

Joined: Oct 10, 2011
Posts: 1


This might sound silly but we're trying to explore the possibility of having log4j entries in file with a name other than log4j.properties such that it will cause minimal changes to our deployment process. Can log4j entries exist in a file that is named anything other than log4j.properties?

Have performed a small test where log4j entries were part of a file with name testlogconfig.properties on the classpath but the entries are not read. The moment we rename this file from testlogconfig.properties to log4j.properties it works.

Any help is greatly appreciated.

Thanks,
Sunil
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can log4j entries exist in a file that is named anything other than log4j.properties?
 
Similar Threads
can BasicConfigurator.configure() read log4j.properties and log output to fileAppender?
configure log4j property file using commons logging
log4j use best way
Does Struts have a log? Can't figure out why ActionServlet is not initializing
Property file prob in Log4j