|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jlf.log.AbstractLoggingMechanism | +--org.jlf.log.smtpMechanism.SMTPLoggingMechanism
This class emails log text to any number of different email accounts based on severity.
Field Summary | |
protected static int |
MAX_LOGGED_SUBJECT_LINE_LENGTH
Holds the maximum string length that should be placed on the subject line of an email. |
protected static SMTPLoggingMechanism |
singleton
|
Fields inherited from class org.jlf.log.AbstractLoggingMechanism |
compactDateFormat, dateFormat, dateOpened, logs, printStream, timeFormat |
Constructor Summary | |
SMTPLoggingMechanism()
|
Method Summary | |
protected void |
close()
Close the SMTP mechanism. |
static AbstractLoggingMechanism |
getInstance()
Class instance accessor which answers the singleton instance of the concrete subclass. |
protected void |
logString(Log log,
int loggingLevel,
java.lang.String logString)
Logs the string given to the SNMP manager. |
protected void |
notifyLogClosed(Log log)
|
protected void |
notifyLoggingLevelChange(Log log,
int loggingLevel)
|
protected void |
notifyLogOpened(Log log)
|
protected void |
open(Log log)
Open the SMTP mechanism, nothing to do. |
java.lang.String |
toString()
Return a nice debug string. |
Methods inherited from class org.jlf.log.AbstractLoggingMechanism |
closeForLog, compactCurrentDate, currentDate, currentTime, getLoggingMechanismForString, getName, hasDateRolledOver, isDatedLog, isSharedLog, loggingPrefix, notifyLogOpened, openForLog, rollLogOver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int MAX_LOGGED_SUBJECT_LINE_LENGTH
protected static SMTPLoggingMechanism singleton
Constructor Detail |
public SMTPLoggingMechanism()
Method Detail |
public static AbstractLoggingMechanism getInstance()
protected void notifyLogOpened(Log log)
protected void notifyLogClosed(Log log)
notifyLogClosed
in class AbstractLoggingMechanism
protected void notifyLoggingLevelChange(Log log, int loggingLevel)
notifyLoggingLevelChange
in class AbstractLoggingMechanism
protected void open(Log log)
open
in class AbstractLoggingMechanism
protected void close()
close
in class AbstractLoggingMechanism
protected void logString(Log log, int loggingLevel, java.lang.String logString)
logString
in class AbstractLoggingMechanism
public java.lang.String toString()
toString
in class AbstractLoggingMechanism
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |