mirror of https://github.com/apache/lucene.git
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:
parent
cf85aab1a0
commit
50cdf36660
|
@ -4,6 +4,19 @@
|
||||||
padding-left: 21px;
|
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
|
#content #logging .jstree > li
|
||||||
{
|
{
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
|
@ -116,10 +116,13 @@ var logging_handler = function( response, text_status, xhr )
|
||||||
return logger_content;
|
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
|
self
|
||||||
.html( '<ul class="tree jstree">' + logger_content + '</ul>' );
|
.html( logger_content );
|
||||||
|
|
||||||
$( 'li:last-child', this )
|
$( 'li:last-child', this )
|
||||||
.addClass( 'jstree-last' );
|
.addClass( 'jstree-last' );
|
||||||
|
@ -136,9 +139,17 @@ var logging_handler = function( response, text_status, xhr )
|
||||||
{
|
{
|
||||||
var selector = $( '.selector-holder', element.closest( 'li' ) );
|
var selector = $( '.selector-holder', element.closest( 'li' ) );
|
||||||
|
|
||||||
$( 'a.trigger', selector )
|
var trigger = $( 'a.trigger', selector );
|
||||||
|
|
||||||
|
trigger
|
||||||
.text( level.esc() );
|
.text( level.esc() );
|
||||||
|
|
||||||
|
if( element.hasClass( 'set' ) )
|
||||||
|
{
|
||||||
|
trigger.first()
|
||||||
|
.addClass( 'set' );
|
||||||
|
}
|
||||||
|
|
||||||
$( 'ul a[data-level="' + level + '"]', selector ).first()
|
$( 'ul a[data-level="' + level + '"]', selector ).first()
|
||||||
.addClass( 'level' );
|
.addClass( 'level' );
|
||||||
}
|
}
|
||||||
|
@ -217,8 +228,7 @@ sammy.get
|
||||||
/^#\/~(logging)$/,
|
/^#\/~(logging)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = $( 'li[data-basepath]', app.menu_element ).attr( 'data-basepath' );
|
loglevel_path = app_config.solr_path + '/admin/loglevel';
|
||||||
loglevel_path = core_basepath + '/admin/loglevel';
|
|
||||||
var content_element = $( '#content' );
|
var content_element = $( '#content' );
|
||||||
|
|
||||||
content_element
|
content_element
|
||||||
|
|
Loading…
Reference in New Issue