You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by GitBox <gi...@apache.org> on 2019/04/05 11:11:05 UTC

[GitHub] [lucene-solr] uschindler edited a comment on issue #618: #Lucene-2562: Make Luke a Lucene/Solr Module

uschindler edited a comment on issue #618: #Lucene-2562: Make Luke a Lucene/Solr Module
URL: https://github.com/apache/lucene-solr/pull/618#issuecomment-480237253
 
 
   Hi, 
   the error message in the main method happens because your LoggerFactory is not initialized BEFORE the first logger is created. main() runs after the "static final" logger. There are 2 ways to fix this:
   - Remove logging from the main class
   - put the LoggerFactory stuff into a `static { LoggerFactory.initializeContext(); }` *before* the logger declaration in the class.
   
   It's just a chicken&egg problem.
   
   For the tests, the easiest is to just remove all log factories. It doe snot matter where the output goes, let's just use defaults.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org