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

com.protomatter.syslog
Class SyslogHTMLMailFormatter

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

public class SyslogHTMLMailFormatter
extends SimpleSyslogTextFormatter

A simple HTML log entry formatter for email.

See Also:
XML configuration class

Constructor Summary
SyslogHTMLMailFormatter()
          Default constructor.
 
Method Summary
 java.lang.String formatLogEntry(SyslogMessage message)
          Format the given log entry.
protected  char[] getStringForLevel(int level)
           
 
Methods inherited from class com.protomatter.syslog.SimpleSyslogTextFormatter
formatDate, formatLogEntry, formatLoggerClassName, formatMessageDetail, getChannelWidth, getClassWidth, getDateFormat, getDateFormatCacheTime, getDateFormatTimezone, getHostname, getHostWidth, getLogFooter, getLogHeader, 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

SyslogHTMLMailFormatter

public SyslogHTMLMailFormatter()
Default constructor.
Method Detail

formatLogEntry

public java.lang.String formatLogEntry(SyslogMessage message)
Format the given log entry. A sample of the text created by this formatter is:

Date:10/31/2000 23:31:25
Severity:ERROR
Channel:DEFAULT_CHANNEL
Hostname:sassyrobot
Thread:main
Logger:LittleSyslogTest
Message: java.lang.Exception: Happy halloween!
  java.lang.Exception: Happy halloween!
        at LittleSyslogTest.go(LittleSyslogTest.java:31)
        at LittleSyslogTest.main(LittleSyslogTest.java:13)
  


getStringForLevel

protected char[] getStringForLevel(int level)
Overrides:
getStringForLevel 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