public void append(LogEvent event) {
Message message = event.getMessage();
//this might be a big buggy, because this event is not attached to a tree, e.g. has no parent
if (message instanceof EventToUI) {
EventToUI eventToUI = (EventToUI) message;
eventToUI.setLevel(event.getLevel().intLevel());
bearFX.sendMessageToUI(eventToUI);
return;
}
String s = new String(getLayout().toByteArray(event));