SOLR-3356: Display Log-Framework- and slfj4-info on Logging-Tab

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1326355 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-04-15 14:53:34 +00:00
parent cf85aab1a0
commit 50cdf36660
2 changed files with 28 additions and 5 deletions

View File

@ -4,6 +4,19 @@
padding-left: 21px;
}
#content #logging .block h2
{
background-image: url( ../../img/ico/document-text.png );
margin-bottom: 10px;
}
#content #logging .block h2 span span
{
color: #c0c0c0;
font-weight: normal;
margin-left: 10px;
}
#content #logging .jstree > li
{
margin-left: 0;

View File

@ -116,10 +116,13 @@ var logging_handler = function( response, text_status, xhr )
return logger_content;
};
var logger_content = logger_tree( null );
var logger_content = '<div class="block">' + "\n"
+ '<h2><span>' + response.framework.esc() + '<span>' + response.slfj4.esc() + '</span></span></h2>' + "\n"
+ '<ul class="tree jstree">' + logger_tree( null ) + '</ul>' + "\n"
+ '</div>';
self
.html( '<ul class="tree jstree">' + logger_content + '</ul>' );
.html( logger_content );
$( 'li:last-child', this )
.addClass( 'jstree-last' );
@ -136,9 +139,17 @@ var logging_handler = function( response, text_status, xhr )
{
var selector = $( '.selector-holder', element.closest( 'li' ) );
$( 'a.trigger', selector )
var trigger = $( 'a.trigger', selector );
trigger
.text( level.esc() );
if( element.hasClass( 'set' ) )
{
trigger.first()
.addClass( 'set' );
}
$( 'ul a[data-level="' + level + '"]', selector ).first()
.addClass( 'level' );
}
@ -217,8 +228,7 @@ sammy.get
/^#\/~(logging)$/,
function( context )
{
var core_basepath = $( 'li[data-basepath]', app.menu_element ).attr( 'data-basepath' );
loglevel_path = core_basepath + '/admin/loglevel';
loglevel_path = app_config.solr_path + '/admin/loglevel';
var content_element = $( '#content' );
content_element