SDK
- Keep error messages in notification tray - Display normal messages longer in notification tray (3s recognize + 3s realize) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10308 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
f071680b95
commit
4b20dc0475
@ -116,15 +116,15 @@ public class ApplicationLogHandler extends Handler implements Callable<JButton>
|
||||
NotifyUtil.error(thrown);
|
||||
thrown.printStackTrace(io.getErr());
|
||||
} else {
|
||||
NotifyUtil.show("Error", formatter.format(record), MessageType.ERROR, listener, 10000);
|
||||
NotifyUtil.show("Error", formatter.format(record), MessageType.ERROR, listener, 0);
|
||||
io.getErr().println(formatter.formatMessage(record));
|
||||
}
|
||||
} else if (record.getLevel().equals(Level.WARNING)) {
|
||||
NotifyUtil.show("Warning", formatter.formatMessage(record), MessageType.WARNING, listener, 5000);
|
||||
NotifyUtil.show("Warning", formatter.formatMessage(record), MessageType.WARNING, listener, 10000);
|
||||
io.getErr().println(formatter.formatMessage(record));
|
||||
} else if (record.getLevel().intValue() > 800) {
|
||||
//larger than INFO:
|
||||
NotifyUtil.show("Info", formatter.formatMessage(record), MessageType.INFO, listener, 3000);
|
||||
NotifyUtil.show("Info", formatter.formatMessage(record), MessageType.INFO, listener, 6000);
|
||||
io.getOut().println(formatter.formatMessage(record));
|
||||
} else if (record.getLevel().equals(Level.INFO)) {
|
||||
io.getOut().println(formatter.formatMessage(record));
|
||||
|
Loading…
x
Reference in New Issue
Block a user