public static LogEntry fromLogRecord(LogRecord record){
		Level level;
		long when = 0;
		String message = "";

			when = record.getMillis();
			message = (record.getMessage()==null?"":record.getMessage());
        level = record.getLevel();

		return new LogEntry(level, when, message);
	}
public static LogEntry fromLogRecord ( LogRecord record ) { Level level ; long when = 0 ; String message = "" ; when = record . getMillis ( ) ; message = ( record . getMessage ( ) == null ? "" : record . getMessage ( ) ) ; level = record . getLevel ( ) ; return new LogEntry ( level , when , message ) ; }
/*
public Spanned toColorString(){

StringBuilder sb = new StringBuilder();

sb.append(toString());

LogLevel l = LogLevel.INFO;

switch(level){
case INFO:{
sb.insert(0, "<font color=\"white\">");
sb.append("</font>");
}break;
case Level.WARNING:{
sb.insert(0, "<font color=\"yellow\">");
sb.append("</font>");
}break;
case Level.SEVERE:{
sb.insert(0, "<font color=\"red\">");
sb.append("</font>");
}break;
case Level.ALL:{
sb.insert(0, "<font color=\"white\">");
sb.append("</font>");
}break;
}

return Html.fromHtml(sb.toString());
}