Syslog White Paper FAQ Examples JavaDoc Classloader
Protomatter Software v1.1.7

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 Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7