mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
+ Support ANSI color output on Linux / Mac
This commit is contained in:
parent
7b1146f168
commit
0d945f207e
@ -137,18 +137,16 @@ public final class Logging {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Color getColor(int level) {
|
public Color getColor(int level) {
|
||||||
if (level >= Level.SEVERE.intValue())
|
if (level < Level.FINE.intValue())
|
||||||
return Color.CHERRY_RED;
|
|
||||||
if (level >= Level.WARNING.intValue())
|
|
||||||
return Color.ORANGE_RED;
|
|
||||||
if (level >= Level.INFO.intValue())
|
|
||||||
return null;
|
|
||||||
if (level >= Level.FINE.intValue())
|
|
||||||
return Color.ROYAL_BLUE;
|
|
||||||
if (level >= Level.FINEST.intValue())
|
|
||||||
return Color.LIME_GREEN;
|
return Color.LIME_GREEN;
|
||||||
|
if (level < Level.INFO.intValue())
|
||||||
|
return Color.ROYAL_BLUE;
|
||||||
|
if (level < Level.WARNING.intValue())
|
||||||
return null;
|
return null;
|
||||||
|
if (level < Level.SEVERE.intValue())
|
||||||
|
return Color.ORANGE_RED;
|
||||||
|
|
||||||
|
return Color.CHERRY_RED; // SEVERE
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user