Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
48d97796
Commit
48d97796
authored
Mar 30, 2013
by
redray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fix
parent
228f82e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
interface/web/monitor/show_log.php
interface/web/monitor/show_log.php
+7
-5
interface/web/themes/default/css/styles.css
interface/web/themes/default/css/styles.css
+2
-1
No files found.
interface/web/monitor/show_log.php
View file @
48d97796
...
...
@@ -129,18 +129,20 @@ if(isset($record['data'])) {
$logDataHtml
=
''
;
/* set css class for each line of log, depending on key words in each line */
foreach
(
$logData
as
$val
)
{
if
(
strpos
(
$val
,
'ERROR
'
)
!==
FALSE
)
{
if
(
strpos
(
strtolower
(
$val
),
'fatal
'
)
!==
FALSE
)
{
$logDataHtml
.
=
"<div class='logerror'>
$val
</div>"
;
}
elseif
(
strpos
(
$val
,
'WARN'
)
!==
FALSE
)
{
}
elseif
(
strpos
(
strtolower
(
$val
),
'error'
)
!==
FALSE
)
{
$logDataHtml
.
=
"<div class='logerror'>
$val
</div>"
;
}
elseif
(
strpos
(
strtolower
(
$val
),
'warn'
)
!==
FALSE
)
{
$logDataHtml
.
=
"<div class='logwarn'>
$val
</div>"
;
}
elseif
(
strpos
(
$val
,
'INFO
'
)
!==
FALSE
)
{
}
elseif
(
strpos
(
strtolower
(
$val
),
'info
'
)
!==
FALSE
)
{
$logDataHtml
.
=
"<div class='loginfo'>
$val
</div>"
;
}
else
{
$logDataHtml
.
=
"<div class='log'>
$val
</div>"
;
}
}
$app
->
tpl
->
setVar
(
"log_data"
,
$logData
);
$app
->
tpl
->
setVar
(
"log_data"
,
$logData
Html
);
}
else
{
$app
->
tpl
->
setVar
(
"log_data"
,
$app
->
lng
(
"no_logdata_txt"
));
}
...
...
interface/web/themes/default/css/styles.css
View file @
48d97796
...
...
@@ -455,7 +455,7 @@ table.list .tbl_col_limit {
font-family
:
Consolas
,
"Lucida Console"
,
"Courier New"
,
monospace
;
font-size
:
0.9em
;
}
.codeview
.logerror
{
background
:
rgb
(
255
,
0
,
0
);
}
.codeview
.logerror
{
background
:
rgb
(
255
,
0
,
0
);
color
:
#fff
;
}
.codeview
.logwarn
{
background
:
rgb
(
255
,
204
,
0
);
}
.codeview
.loginfo
{
background
:
rgb
(
153
,
204
,
255
);
}
...
...
@@ -492,6 +492,7 @@ table.list td.tbl_col_buttons { word-wrap:normal;white-space:normal;overflow:vis
}
/* Systemmonitor */
.systemmonitor
,
.systemmonitor-server
,
.systemmonitor-ve
,
.systemmonitor-state
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment