|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.logging.Formatter logging.HTMLFormatter
public class HTMLFormatter
The HTMLFormatter class provides a basic html formatter for java.util.Logger objects. This class will produce basic html files of Logged events.
Constructor Summary | |
---|---|
HTMLFormatter()
|
Method Summary | |
---|---|
java.lang.String |
format(java.util.logging.LogRecord rec)
Creates a table row tagged html element given a LogRecord object. |
java.lang.String |
getExceptionString(java.util.logging.LogRecord rec)
Creates an exception String that mimics the Java console exception message given the LogRecord object. |
java.lang.String |
getHead(java.util.logging.Handler h)
Creates the html file head information. |
java.lang.String |
getRowTag(java.util.logging.LogRecord rec)
Depending on log record Level. |
java.lang.String |
getTail(java.util.logging.Handler h)
The html file close tag information. |
Methods inherited from class java.util.logging.Formatter |
---|
formatMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLFormatter()
Method Detail |
---|
public java.lang.String format(java.util.logging.LogRecord rec)
format
in class java.util.logging.Formatter
rec
- The LogRecord object to format into an HTML table row element.
public java.lang.String getHead(java.util.logging.Handler h)
getHead
in class java.util.logging.Formatter
h
- The Logger Handler object.
public java.lang.String getTail(java.util.logging.Handler h)
getTail
in class java.util.logging.Formatter
h
- The Logger Handler object.
public java.lang.String getRowTag(java.util.logging.LogRecord rec)
rec
- The log record to determine row color.
public java.lang.String getExceptionString(java.util.logging.LogRecord rec)
rec
- The LogRecord object to extract exception messages from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |