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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to