Ticket #1001160: Add time stamps to the logs for all levels from Warning through to All

This commit is contained in:
Elaine Tan 2012-08-10 18:23:11 +08:00
parent 57b1bc9877
commit 4ef48f3ae3
1 changed files with 2 additions and 0 deletions

View File

@ -93,12 +93,14 @@ public class CLogFormatter extends Formatter
/** Time/Error */
if (record.getLevel() == Level.SEVERE)
{ // 12:12:12.123
sb.append(tsStr.substring(11, 23));
sb.append("===========> ");
if (Ini.isClient())
Toolkit.getDefaultToolkit().beep();
}
else if (record.getLevel() == Level.WARNING)
{ // 12:12:12.123
sb.append(tsStr.substring(11, 23));
sb.append("-----------> ");
}
else