Package cl.cromer.azaraka.logging
Class HtmlFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- cl.cromer.azaraka.logging.HtmlFormatter
-
public class HtmlFormatter extends java.util.logging.Formatter
This class handles formatting the log into a html table
-
-
Constructor Summary
Constructors Constructor Description HtmlFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.util.logging.LogRecord logRecord)
Create a log row in the html tablejava.lang.String
getHead(java.util.logging.Handler handler)
This method is called to get the head of the logjava.lang.String
getTail(java.util.logging.Handler handler)
This method is called to get the tail of the log
-
-
-
Method Detail
-
format
public java.lang.String format(java.util.logging.LogRecord logRecord)
Create a log row in the html table- Specified by:
format
in classjava.util.logging.Formatter
- Parameters:
logRecord
- The record to insert into the table- Returns:
- Returns the log row in html
-
getHead
public java.lang.String getHead(java.util.logging.Handler handler)
This method is called to get the head of the log- Overrides:
getHead
in classjava.util.logging.Formatter
- Parameters:
handler
- The handler- Returns:
- Returns the header of the log
-
getTail
public java.lang.String getTail(java.util.logging.Handler handler)
This method is called to get the tail of the log- Overrides:
getTail
in classjava.util.logging.Formatter
- Parameters:
handler
- The handler- Returns:
- Returns the tail of the log
-
-