Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
[OFBIZ-7575] Fixed styling issue on Logs in LogView, as none was bein…
Browse files Browse the repository at this point in the history
…g applied.

As per updated code now-
INFO will be shown in Green color
WARNING will be in bold Blue color
ERROR will be in Red color along with border
DEBUG will be in Grey color
Thanks Swapnil M Mane for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750336 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pranayscpandey committed Jun 27, 2016
1 parent 80c245c commit 675ddd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/webtools/groovyScripts/log/LogView.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ try {
File logFile = FileUtil.getFile(logFileName);
logFile.eachLine { line ->
type = '';
if (line.contains(":INFO ] ")) {
if (line.contains(" |I| ")) {
type = 'INFO';
} else if (line.contains(":WARN ] ")) {
} else if (line.contains(" |W| ")) {
type = 'WARN';
} else if (line.contains(":ERROR] ")) {
} else if (line.contains(" |E| ")) {
type = 'ERROR';
} else if (line.contains(":DEBUG] ")) {
} else if (line.contains(" |D| ")) {
type = 'DEBUG';
}
logLines.add([type: type, line:line]);
Expand Down

0 comments on commit 675ddd0

Please sign in to comment.