You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by David Smiley <ds...@apache.org> on 2020/09/11 02:51:56 UTC

Logging deprecations

Wouldn't it be nice if Solr had a simple utility to log a warning exactly
once, and in a disable-able way, when you use a feature that we want to
remove from Solr?  Or that we are thinking about removing but want
user input?  I'm thinking of adding this.  I don't think our users monitor
the lists well, and so this would be an additional way to solicit their
inputs.  If you know if something similar exists or if you know of a
suitable place this should go, please let me know.  I didn't look hard but
found nothing so I'll likely write some new little class for this.  I'm
thinking of a simple static method taking a String loggerName (that is an
ID of the feature likewise) and a String warning message.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley

Re: Logging deprecations

Posted by Jan Høydahl <ja...@cominvent.com>.
I filed this https://issues.apache.org/jira/browse/SOLR-12987 but it attracted no interest. I was aiming at a separate log file, but have not done any coding.

Jan

> 11. sep. 2020 kl. 04:51 skrev David Smiley <ds...@apache.org>:
> 
> Wouldn't it be nice if Solr had a simple utility to log a warning exactly once, and in a disable-able way, when you use a feature that we want to remove from Solr?  Or that we are thinking about removing but want user input?  I'm thinking of adding this.  I don't think our users monitor the lists well, and so this would be an additional way to solicit their inputs.  If you know if something similar exists or if you know of a suitable place this should go, please let me know.  I didn't look hard but found nothing so I'll likely write some new little class for this.  I'm thinking of a simple static method taking a String loggerName (that is an ID of the feature likewise) and a String warning message.
> 
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> http://www.linkedin.com/in/davidwsmiley <http://www.linkedin.com/in/davidwsmiley>