|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.SimpleSyslogMailSubjectFormatter
A simple mail subject formatter. This class is used by default by the MailLog logger.
MailLog
,
XML configuration class
Constructor Summary | |
SimpleSyslogMailSubjectFormatter()
Default constructor. |
Method Summary | |
java.lang.String |
formatMessageSubject(SyslogMessage message)
Format the given log entry. |
protected java.lang.String |
getHostname(java.net.InetAddress host)
|
boolean |
getShowChannel()
Get wether we should show the channel name in the output. |
boolean |
getShowHostName()
Get wether we should show the host name in the output. |
boolean |
getShowThreadName()
Get wether we should show the thread name in the output. |
protected java.lang.String |
getStringForLevel(int level)
|
void |
setShowChannel(boolean showChannel)
Set wether we should show the channel name in the output. |
void |
setShowHostName(boolean showHostName)
Set wether we should show the host name in the output. |
void |
setShowThreadName(boolean showThreadName)
Set wether we should show the thread name in the output. |
protected java.lang.String |
trimFromLastPeriod(java.lang.String s)
Given something like "foo.bar.Baz" this will return "Baz". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSyslogMailSubjectFormatter()
Method Detail |
public java.lang.String formatMessageSubject(SyslogMessage message)
formatMessageSubject
in interface SyslogMailSubjectFormatter
protected java.lang.String getStringForLevel(int level)
protected java.lang.String getHostname(java.net.InetAddress host)
public void setShowHostName(boolean showHostName)
public boolean getShowHostName()
public void setShowThreadName(boolean showThreadName)
public boolean getShowThreadName()
public void setShowChannel(boolean showChannel)
public boolean getShowChannel()
protected java.lang.String trimFromLastPeriod(java.lang.String s)
|
Protomatter Software v1.1.7 Copyright 1998-2002 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Software v1.1.7 | http://protomatter.sourceforge.net/1.1.7 |