19package denoptim.logging;
21import java.text.SimpleDateFormat;
23import java.util.logging.Formatter;
24import java.util.logging.Handler;
25import java.util.logging.Level;
26import java.util.logging.LogRecord;
41 StringBuilder buf =
new StringBuilder(1000);
46 if (rec.getLevel().intValue() >= Level.WARNING.intValue())
49 buf.append(rec.getLevel());
53 buf.append(rec.getLevel());
57 buf.append(
calcDate(rec.getMillis()));
59 buf.append(formatMessage(rec));
62 buf.append(
"</tr>\n");
63 return buf.toString();
70 SimpleDateFormat date_format =
new SimpleDateFormat(
"MMM dd,yyyy HH:mm");
71 Date resultdate =
new Date(millisecs);
72 return date_format.format(resultdate);
82 return "<HTML>\n<HEAD>\n" + (
new Date()) +
"\n</HEAD>\n<BODY>\n<PRE>\n"
84 +
"<tr><th>Time</th><th>Log Message</th></tr>\n";
94 return "</table>\n </PRE></BODY>\n</HTML>\n";