4teamwork / ftw.solr

Solr integration for Plone
5 stars 5 forks source link

Log maintenance commands to a dedicated logfile. #171

Closed lukasgraf closed 4 years ago

lukasgraf commented 4 years ago

This change adds a TimedRotatingFileHandler to the already existing ftw.solr.maintenance logger, so that maintenance commands get logged to a dedicated logfile.

As discussed with @buchi and @deiferni, the log directory is determined by deriving it from the location of Zope's EventLog.

I decided to use a single logfile, solr-maintenance.log, for all processes (instances), even though this in theory could lead to concurrency issues because multiple processes might be writing to the same file.

However, I deemed this risk acceptable because

Jira: https://4teamwork.atlassian.net/browse/GEVER-179