Syslog: White Paper FAQ Examples JavaDoc
Protomatter Classes v1.1.6

com.protomatter.syslog
Class HTMLSyslogTextFormatter

java.lang.Object
  |
  +--com.protomatter.syslog.SimpleSyslogTextFormatter
        |
        +--com.protomatter.syslog.HTMLSyslogTextFormatter
All Implemented Interfaces:
SyslogTextFormatter

public class HTMLSyslogTextFormatter
extends SimpleSyslogTextFormatter

A log entry formatter that produces HTML.

See Also:
XML configuration class

Constructor Summary
HTMLSyslogTextFormatter()
          Private constructor so nobody goes around creating these.
 
Method Summary
 void formatLogEntry(java.lang.StringBuffer b, SyslogMessage message)
          Format a log entry.
 java.lang.String getLogFooter()
          Get the log footer.
 java.lang.String getLogHeader()
          Get the log header.
protected  char[] getStringForLevel(int level)
           
 java.lang.String getStyleSheet()
          Get the stylesheet being used.
 void setStyleSheet(java.lang.String styleSheet)
          Set the stylesheet to use.
 
Methods inherited from class com.protomatter.syslog.SimpleSyslogTextFormatter
formatDate, formatLoggerClassName, formatMessageDetail, getChannelWidth, getClassWidth, getDateFormat, getDateFormatCacheTime, getDateFormatTimezone, getHostname, getHostWidth, getNextException, getShowChannel, getShowHostName, getShowThreadName, getThreadWidth, justify, justify, resetDateFormat, setChannelWidth, setClassWidth, setDateFormat, setDateFormatCacheTime, setDateFormatTimezone, setHostWidth, setShowChannel, setShowHostName, setShowThreadName, setThreadWidth, trimFromLastPeriod, trimFromLastPeriod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLSyslogTextFormatter

public HTMLSyslogTextFormatter()
Private constructor so nobody goes around creating these.
Method Detail

setStyleSheet

public void setStyleSheet(java.lang.String styleSheet)
Set the stylesheet to use.

getStyleSheet

public java.lang.String getStyleSheet()
Get the stylesheet being used.

getStringForLevel

protected char[] getStringForLevel(int level)
Overrides:
getStringForLevel in class SimpleSyslogTextFormatter

formatLogEntry

public void formatLogEntry(java.lang.StringBuffer b,
                           SyslogMessage message)
Format a log entry.
Overrides:
formatLogEntry in class SimpleSyslogTextFormatter

getLogHeader

public java.lang.String getLogHeader()
Get the log header. This simply returns an empty string.
Overrides:
getLogHeader in class SimpleSyslogTextFormatter

getLogFooter

public java.lang.String getLogFooter()
Get the log footer. This simply returns an empty string.
Overrides:
getLogFooter in class SimpleSyslogTextFormatter

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6