You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Ryan McKinley <ry...@gmail.com> on 2012/04/13 23:06:27 UTC

Show Logging In Solr UI?

What do people think about showing log messages in the solr UI?

I have some code that registers a logging Appender (log4j) or Handler
(JUL) and keeps a buffer of the last N messages.  It then spits them
out from a RequestHandler.  Essentially this is like:
https://issues.apache.org/jira/browse/SOLR-178

Is this something we want in Solr?  If so, can we add log4j to the compile path?

ryan

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


Re: Show Logging In Solr UI?

Posted by Walter Underwood <wu...@wunderwood.org>.
It seems reasonable. This is one of the things we added to Ultraseek. Plus, the developer next to me asked yesterday if he could see the logs in Solr.

wunder

On Apr 13, 2012, at 3:19 PM, Chris Male wrote:

> I definitely think this is something we want in Solr.
> 
> As much as I'm loathed to suggest this, why not put the log4j (and any other impls, does anybody still use JCL?) into a Solr contrib?  I don't think having it floating around github does us much good.
> 
> On Sat, Apr 14, 2012 at 9:52 AM, Ryan McKinley <ry...@gmail.com> wrote:
> > Could you do it with reflection?
> 
> not easily :)
> 
> Perhaps we could have a separate source tree that has different
> dependencies, but it gets pushed into the same .jar -- this would keep
> people from accidentally using log4j directly.
> 
> Or we could just support JUL and I could put the Log4J version on
> github or something.
> 
> I have found it very useful to be able to see the last few log
> messages from various machines without needing ssh access.
> 
> 
> On Fri, Apr 13, 2012 at 2:44 PM, Jan Høydahl <ja...@cominvent.com> wrote:
> > Hi,
> >
> > Could be useful, but we should not depend on anything else than slf4j. Would be useful if slf4j provided hooks for us to subscribe to log events, but it doesn't :( Could you do it with reflection?
> >
> > --
> > Jan Høydahl, search solution architect
> > Cominvent AS - www.cominvent.com
> > Solr Training - www.solrtraining.com
> >
> > On 13. apr. 2012, at 23:06, Ryan McKinley wrote:
> >
> >> What do people think about showing log messages in the solr UI?
> >>
> >> I have some code that registers a logging Appender (log4j) or Handler
> >> (JUL) and keeps a buffer of the last N messages.  It then spits them
> >> out from a RequestHandler.  Essentially this is like:
> >> https://issues.apache.org/jira/browse/SOLR-178
> >>
> >> Is this something we want in Solr?  If so, can we add log4j to the compile path?
> >>
> >> ryan
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 
> 
> 
> 
> -- 
> Chris Male | Software Developer | DutchWorks | www.dutchworks.nl

--
Walter Underwood
wunder@wunderwood.org




Re: Show Logging In Solr UI?

Posted by Chris Male <ge...@gmail.com>.
I definitely think this is something we want in Solr.

As much as I'm loathed to suggest this, why not put the log4j (and any
other impls, does anybody still use JCL?) into a Solr contrib?  I don't
think having it floating around github does us much good.

On Sat, Apr 14, 2012 at 9:52 AM, Ryan McKinley <ry...@gmail.com> wrote:

> > Could you do it with reflection?
>
> not easily :)
>
> Perhaps we could have a separate source tree that has different
> dependencies, but it gets pushed into the same .jar -- this would keep
> people from accidentally using log4j directly.
>
> Or we could just support JUL and I could put the Log4J version on
> github or something.
>
> I have found it very useful to be able to see the last few log
> messages from various machines without needing ssh access.
>
>
> On Fri, Apr 13, 2012 at 2:44 PM, Jan Høydahl <ja...@cominvent.com>
> wrote:
> > Hi,
> >
> > Could be useful, but we should not depend on anything else than slf4j.
> Would be useful if slf4j provided hooks for us to subscribe to log events,
> but it doesn't :( Could you do it with reflection?
> >
> > --
> > Jan Høydahl, search solution architect
> > Cominvent AS - www.cominvent.com
> > Solr Training - www.solrtraining.com
> >
> > On 13. apr. 2012, at 23:06, Ryan McKinley wrote:
> >
> >> What do people think about showing log messages in the solr UI?
> >>
> >> I have some code that registers a logging Appender (log4j) or Handler
> >> (JUL) and keeps a buffer of the last N messages.  It then spits them
> >> out from a RequestHandler.  Essentially this is like:
> >> https://issues.apache.org/jira/browse/SOLR-178
> >>
> >> Is this something we want in Solr?  If so, can we add log4j to the
> compile path?
> >>
> >> ryan
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>


-- 
Chris Male | Software Developer | DutchWorks | www.dutchworks.nl

Re: Show Logging In Solr UI?

Posted by Ryan McKinley <ry...@gmail.com>.
> Could you do it with reflection?

not easily :)

Perhaps we could have a separate source tree that has different
dependencies, but it gets pushed into the same .jar -- this would keep
people from accidentally using log4j directly.

Or we could just support JUL and I could put the Log4J version on
github or something.

I have found it very useful to be able to see the last few log
messages from various machines without needing ssh access.


On Fri, Apr 13, 2012 at 2:44 PM, Jan Høydahl <ja...@cominvent.com> wrote:
> Hi,
>
> Could be useful, but we should not depend on anything else than slf4j. Would be useful if slf4j provided hooks for us to subscribe to log events, but it doesn't :( Could you do it with reflection?
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
>
> On 13. apr. 2012, at 23:06, Ryan McKinley wrote:
>
>> What do people think about showing log messages in the solr UI?
>>
>> I have some code that registers a logging Appender (log4j) or Handler
>> (JUL) and keeps a buffer of the last N messages.  It then spits them
>> out from a RequestHandler.  Essentially this is like:
>> https://issues.apache.org/jira/browse/SOLR-178
>>
>> Is this something we want in Solr?  If so, can we add log4j to the compile path?
>>
>> ryan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

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


Re: Show Logging In Solr UI?

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

Could be useful, but we should not depend on anything else than slf4j. Would be useful if slf4j provided hooks for us to subscribe to log events, but it doesn't :( Could you do it with reflection?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 13. apr. 2012, at 23:06, Ryan McKinley wrote:

> What do people think about showing log messages in the solr UI?
> 
> I have some code that registers a logging Appender (log4j) or Handler
> (JUL) and keeps a buffer of the last N messages.  It then spits them
> out from a RequestHandler.  Essentially this is like:
> https://issues.apache.org/jira/browse/SOLR-178
> 
> Is this something we want in Solr?  If so, can we add log4j to the compile path?
> 
> ryan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


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