lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2459) LogLevelSelection Servlet outputs plain HTML
Date Wed, 01 Jun 2011 08:45:47 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042046#comment-13042046
] 

Upayavira commented on SOLR-2459:
---------------------------------

So, slf4j is a facade, and it looks like Solr uses JDK logging behind that. I'm assuming this
is correct.

It seems that the best way to do this is to replace the LogLevelSelection servlet with a Handler.

Coding a handler to display current settings is easy, and I've already done it. However, to
code the update side, requires a decision on suitable request parameters.

The biggest question is whether to allow multiple settings to be changed in one request. The
current LogLevelSelection servlet allows you to change them all in one single hit. However,
allowing this in a new Handler would, in my opinion, give rise to an ugly API. Therefore,
I suggest that:

http://localhost:8983/solr/admin/logging   <- would display current settings
http://localhost:8983/solr/admin/logging?category=core&level=FINE   <- would change
a single value

This latter would probably output the same as the previous, but perhaps with an 'updated'
attribute set to true on that category.

Given the ajax nature of the new UI, I suspect this would be enough for it to work with.

Thoughts?

> LogLevelSelection Servlet outputs plain HTML
> --------------------------------------------
>
>                 Key: SOLR-2459
>                 URL: https://issues.apache.org/jira/browse/SOLR-2459
>             Project: Solr
>          Issue Type: Wish
>          Components: web gui
>            Reporter: Stefan Matheis (steffkes)
>            Priority: Trivial
>
> The current available Output of the LogLevelSelection Servlet is plain HTML, which made
it unpossible, to integrate the Logging-Information in the new Admin-UI. Format-Agnostic Output
(like every [?] other Servlet offers) would be really nice!
> Just as an Idea for a future structure, the new admin-ui is [actually based on that json-structure|https://github.com/steffkes/solr-admin/blob/master/logging.json]
:)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message