kohesive / solr-undertow

Solr / SolrCloud running in high performance server - tiny, fast startup, simple to configure, easy deployment without an application server.
Other
96 stars 14 forks source link

Question about logging #38

Closed heathprovost closed 4 years ago

heathprovost commented 5 years ago

Basically, is there a way to get the Solr console logging display to show the logs? I cant figure out how to get that to work... The logs are setup fine and I can view them from cmdline and whatnot, but the console just spins forever when you click the logging tab

apatrida commented 5 years ago

Taking a look at the code, it seems there is a LogWatcher plugin model to watch logging and record it for later use. That might need to be adapted to work with the logback logging used in solr-undertow for the admin UI to function.

apatrida commented 5 years ago

important classes in case anyone wants to look into this:

Assuming this is where the admin UI picks up logging data, just create a new LogWatcher implementation that works with our logging, and then register it with the static method on LogWatcher.

heathprovost commented 4 years ago

I know this is a year later, but if anyone needs this someone actually wrote a working implementation ages ago and I just found it recently: https://github.com/ottovazquez/solr-logback-watcher

All I did was build it with maven and put the jar into /lib and it worked, no changes required (for Solr 8.0 anyway). Basically just mimics the builtin one.