File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 129129 $ logDataHtml = '' ;
130130 /* set css class for each line of log, depending on key words in each line */
131131 foreach ($ logData as $ val ) {
132- if (strpos ($ val , 'ERROR ' ) !== FALSE ) {
132+ if (strpos (strtolower ( $ val) , 'fatal ' ) !== FALSE ) {
133133 $ logDataHtml .= "<div class='logerror'> $ val</div> " ;
134- } elseif (strpos ($ val , 'WARN ' ) !== FALSE ) {
134+ } elseif (strpos (strtolower ($ val ), 'error ' ) !== FALSE ) {
135+ $ logDataHtml .= "<div class='logerror'> $ val</div> " ;
136+ } elseif (strpos (strtolower ($ val ), 'warn ' ) !== FALSE ) {
135137 $ logDataHtml .= "<div class='logwarn'> $ val</div> " ;
136- } elseif (strpos ($ val , 'INFO ' ) !== FALSE ) {
138+ } elseif (strpos (strtolower ( $ val) , 'info ' ) !== FALSE ) {
137139 $ logDataHtml .= "<div class='loginfo'> $ val</div> " ;
138140 } else {
139141 $ logDataHtml .= "<div class='log'> $ val</div> " ;
140142 }
141143 }
142-
143- $ app ->tpl ->setVar ("log_data " , $ logData );
144+
145+ $ app ->tpl ->setVar ("log_data " , $ logDataHtml );
144146} else {
145147 $ app ->tpl ->setVar ("log_data " , $ app ->lng ("no_logdata_txt " ));
146148}
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ table.list .tbl_col_limit {
455455 font-family : Consolas, "Lucida Console" , "Courier New" , monospace;
456456 font-size : 0.9em ;
457457}
458- .codeview .logerror { background : rgb (255 , 0 , 0 ); }
458+ .codeview .logerror { background : rgb (255 , 0 , 0 ); color : # fff ; }
459459.codeview .logwarn { background : rgb (255 , 204 , 0 ); }
460460.codeview .loginfo { background : rgb (153 , 204 , 255 ); }
461461
@@ -492,6 +492,7 @@ table.list td.tbl_col_buttons { word-wrap:normal;white-space:normal;overflow:vis
492492}
493493
494494/* Systemmonitor */
495+ .systemmonitor ,
495496.systemmonitor-server ,
496497.systemmonitor-ve ,
497498.systemmonitor-state {
You can’t perform that action at this time.
0 commit comments