1

I am having a problem while using 'log4j'.

Problem is, its properties file cannot be read unless it is named 'log4j.properties' but all I need is to name it as 'myproject.properties'.

Govan
  • 7,751
  • 5
  • 26
  • 42

1 Answers1

3

this post (How to use custom file instead of log4j.properties) should solve your problem. basically, you pass a log4j.config system property.

Community
  • 1
  • 1
arajashe
  • 281
  • 1
  • 9