NCEAS / ezid

Implementation of the EZID identifier services in a Java library
Other
4 stars 4 forks source link

EZID Ships with a log4j.properties File #7

Closed nate-hook closed 8 years ago

nate-hook commented 10 years ago

Good Afternoon,

I would like to request that the log4j.properties file be removed from your build if possible.

The shipped log4j.properties file is clashing with our logging properties file and causing our application to spew a ton of unwanted log messages.

Thank you for your time,

Regards,

Nate

mbjones commented 8 years ago

@hooknc Your application has complete control over how log4j is initialized. I assume you figured this out when you reported this issue, but I am documenting this for historical reference. See the 'Default Initialization Procedure' section of the log4j manual for the procedures that you can use to set up your configuration to ignore the file that we ship. The log4j.properties file is shipped as a default debug configuration for the ezid library, but is easily ignored, so we will continue to ship the file. Some of the techniques you can use (from the manual), include: