In the past few months, quite a few VuFind users have complained about this message at the top of their SolrMarc output:
log4j:WARN No appenders could be found for logger (org.solrmarc.driver.IndexDriver).
log4j:WARN Please initialize the log4j system properly.
I just checked my own test instance, and I’m seeing it too, though it is followed by valid log4j output to both console and log file. It’s either a false alarm, or else only some parts of the code are having trouble with logging.
It appears that one workaround is to explicitly specify the log4j.configuration Java property when invoking SolrMarc; I’ve started a pull request to add this to VuFind here:
However, before I merge that, I wanted to see if this would simply be masking some underlying bug in SolrMarc. Any idea why we’re seeing this warning, yet logging is still working? Is anyone running into this problem outside of a VuFind context?
Thanks, Bob, that might explain it – I’ll take a closer look when time permits!
To view this discussion on the web visit https://groups.google.com/d/msgid/solrmarc-tech/DM5PR13MB13398E569A01854FC55E3244807E0%40DM5PR13MB1339.namprd13.prod.outlook.com.
Thanks, Bob, and sorry if I’ve created needless work for you – if I’m the only one using the ConfigDriver, I don’t mind taking responsibility for maintenance. 😊
In any case, if you’ve already put in the effort, let me know when the work is committed and I’ll be happy to repeat my tests and make sure the warnings have gone away.
I also take your point about moving away from the properties files entirely; for VuFind’s purposes, it has been convenient to be able to bundle up settings in a config file in some circumstances… but I should revisit the code and see if making the scripts more flexible is a better long-term solution. I’ll open a JIRA ticket as a reminder to do this work!