@Override
        public String format(LogRecord record) {
            StringBuilder sb = new StringBuilder();

            sb.append(record.getLevel().getLocalizedName()).append(" ");
            sb.append(formatMessage(record)).append(lineSeperator);

            if (record.getThrown() != null) {
                try {
                    StringWriter sw = new StringWriter();
                    PrintWriter pw = new PrintWriter(sw);
                    record.getThrown().printStackTrace(pw);
                    pw.close();
                    sb.append(sw.toString());
                } catch (Exception ex) {
                }
            }

            return sb.toString();
        }
Converts from Java based logging ({@link Logger} to Android based logging
{@link Log}.
jme3-android/src/main/java/com/jme3/util/AndroidLogHandler.java