projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
79c2e3f
)
2004/01/03 04:20:07
author
brian
<brian@xwt.org>
Fri, 30 Jan 2004 07:44:02 +0000
(07:44 +0000)
committer
brian
<brian@xwt.org>
Fri, 30 Jan 2004 07:44:02 +0000
(07:44 +0000)
darcs-hash:
20040130074402
-aa32f-
6568881a43db22808e12bca740b80fb3804c995b
.gz
src/org/xwt/util/Log.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/util/Log.java
b/src/org/xwt/util/Log.java
index
bb690b2
..
329382f
100644
(file)
--- a/
src/org/xwt/util/Log.java
+++ b/
src/org/xwt/util/Log.java
@@
-14,7
+14,7
@@
import java.util.*;
public class Log {
public static boolean on = true;
public class Log {
public static boolean on = true;
- public static boolean color = true;
+ public static boolean color = false;
public static boolean verbose = false;
public static boolean logDates = false;
public static Date lastDate = null;
public static boolean verbose = false;
public static boolean logDates = false;
public static Date lastDate = null;
@@
-48,13
+48,13
@@
public class Log {
private static final int PURPLE = 35;
private static final int BROWN = 33;
private static final int GRAY = 37;
private static final int PURPLE = 35;
private static final int BROWN = 33;
private static final int GRAY = 37;
-
+
private static String color(int color, boolean bright, String s) {
if (!Log.color) return s;
return
private static String color(int color, boolean bright, String s) {
if (!Log.color) return s;
return
- "" + ((char)27) + "[" + (bright?1:0) + ";" + color + "m" +
+ "\033[40;" + (bright?"1;":"") + color + "m" +
s +
s +
- ((char)27) + "[0m";
+ "\033[0m";
}
private static String lastClassName = null;
}
private static String lastClassName = null;
@@
-135,6
+135,7
@@
public class Log {
while(str.indexOf('\n') != -1) {
System.err.println(classname + color(levelcolor, bright, str.substring(0, str.indexOf('\n'))));
classname = logDates ? " " : " ";
while(str.indexOf('\n') != -1) {
System.err.println(classname + color(levelcolor, bright, str.substring(0, str.indexOf('\n'))));
classname = logDates ? " " : " ";
+ classname = color(GRAY,false,classname);
str = str.substring(str.indexOf('\n') + 1);
}
System.err.println(classname + color(levelcolor, bright, str));
str = str.substring(str.indexOf('\n') + 1);
}
System.err.println(classname + color(levelcolor, bright, str));