|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
vs.debug.HTMLLogFormatter
public class HTMLLogFormatter
This custom formatter formats parts of a log record.
| Field Summary | |
|---|---|
static java.lang.String[] |
FINE
|
static java.lang.String[] |
HEADER
|
static java.lang.String[] |
INFO
|
static java.lang.String[] |
SEVERE
|
static java.lang.String |
TABLEBG
|
static java.lang.String[] |
WARNING
|
| Constructor Summary | |
|---|---|
HTMLLogFormatter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
escapeHTML(java.lang.String src)
|
java.lang.String |
format(java.util.logging.LogRecord rec)
Formats a log record |
java.lang.String |
genCell(java.lang.String msg,
java.lang.String[] settings)
Generates a table cell, with given settings |
java.lang.String |
getHead(java.util.logging.Handler h)
Returns the head of the log file |
java.lang.String |
getTail(java.util.logging.Handler h)
Returns the tail of the log file |
void |
setTitle(java.lang.String title)
Sets the title of this log file, displayed on top. |
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String[] HEADER
public static java.lang.String TABLEBG
public static java.lang.String[] FINE
public static java.lang.String[] INFO
public static java.lang.String[] WARNING
public static java.lang.String[] SEVERE
| Constructor Detail |
|---|
public HTMLLogFormatter()
| Method Detail |
|---|
public static java.lang.String escapeHTML(java.lang.String src)
public java.lang.String format(java.util.logging.LogRecord rec)
format in class java.util.logging.Formatterrec - The record to format
public java.lang.String genCell(java.lang.String msg,
java.lang.String[] settings)
msg - The HTML contents of the cellsettings - The settings (like foreground color, background color)
public java.lang.String getHead(java.util.logging.Handler h)
getHead in class java.util.logging.Formatterh - the handlerpublic java.lang.String getTail(java.util.logging.Handler h)
getTail in class java.util.logging.Formatterh - the handlerpublic void setTitle(java.lang.String title)
title - the title
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||