Ticket #1001160: Add time stamps to the logs for all levels from Warning through to All
This commit is contained in:
parent
57b1bc9877
commit
4ef48f3ae3
|
@ -93,12 +93,14 @@ public class CLogFormatter extends Formatter
|
||||||
/** Time/Error */
|
/** Time/Error */
|
||||||
if (record.getLevel() == Level.SEVERE)
|
if (record.getLevel() == Level.SEVERE)
|
||||||
{ // 12:12:12.123
|
{ // 12:12:12.123
|
||||||
|
sb.append(tsStr.substring(11, 23));
|
||||||
sb.append("===========> ");
|
sb.append("===========> ");
|
||||||
if (Ini.isClient())
|
if (Ini.isClient())
|
||||||
Toolkit.getDefaultToolkit().beep();
|
Toolkit.getDefaultToolkit().beep();
|
||||||
}
|
}
|
||||||
else if (record.getLevel() == Level.WARNING)
|
else if (record.getLevel() == Level.WARNING)
|
||||||
{ // 12:12:12.123
|
{ // 12:12:12.123
|
||||||
|
sb.append(tsStr.substring(11, 23));
|
||||||
sb.append("-----------> ");
|
sb.append("-----------> ");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue