\n");
+
+ // colorize any levels >= WARNING in red
+ if (logRecord.getLevel().intValue() >= Level.WARNING.intValue()) {
+ stringBuilder.append("\t");
+ stringBuilder.append("");
+ stringBuilder.append(StringUtils.encodeHtml(logRecord.getLevel().getName()));
+ stringBuilder.append("");
+ }
+ else {
+ stringBuilder.append("\t | ");
+ stringBuilder.append(StringUtils.encodeHtml(logRecord.getLevel().getName()));
+ }
+ stringBuilder.append(" | \n");
+
+ stringBuilder.append("\t");
+ stringBuilder.append(StringUtils.encodeHtml(calculateDate(logRecord.getMillis())));
+ stringBuilder.append(" | \n");
+
+ stringBuilder.append("\t");
+ stringBuilder.append(StringUtils.encodeHtml(logRecord.getSourceClassName()));
+ stringBuilder.append(" | \n");
+ stringBuilder.append("\t");
+ stringBuilder.append(StringUtils.encodeHtml(logRecord.getSourceMethodName()));
+ stringBuilder.append(" | \n");
+
+ stringBuilder.append("\t");
+ stringBuilder.append(StringUtils.encodeHtml(formatMessage(logRecord)));
+ stringBuilder.append(" | \n");
+
+ stringBuilder.append("
\n");
+
+ return stringBuilder.toString();
+ }
+
+ /**
+ * Calculate the date and time for the log row
+ *
+ * @param milliseconds The time the log record happened in milliseconds
+ * @return Returns the formatted time
+ */
+ private String calculateDate(long milliseconds) {
+ SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd,yyyy HH:mm:ss");
+ Date resultDate = new Date(milliseconds);
+ return dateFormat.format(resultDate);
+ }
+
+ /**
+ * This method is called to get the head of the log
+ *
+ * @param handler The handler
+ * @return Returns the header of the log
+ */
+ public String getHead(Handler handler) {
+ return "\n\n\n"
+ + "\n"
+ + "\n"
+ + "