|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.productivity.java.syslog4j.impl.backlog.NullSyslogBackLogHandler
NullSyslogBackLogHandler can be used if there's no need for a last-chance logging mechanism whenever the Syslog protocol fails.
Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.
Constructor Summary | |
NullSyslogBackLogHandler()
|
Method Summary | |
void |
down(SyslogIF syslog,
java.lang.String reason)
Implement down(syslog,reason) to notify/log when the syslog protocol is unavailable. |
void |
initialize()
Implement initialize() to handle one-time set-up for this backLog handler. |
void |
log(SyslogIF syslog,
int level,
java.lang.String message,
java.lang.String reason)
|
void |
up(SyslogIF syslog)
Implement up(syslog) to notify/log when the syslog protocol becomes available after a down condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullSyslogBackLogHandler()
Method Detail |
public void initialize()
SyslogBackLogHandlerIF
initialize
in interface SyslogBackLogHandlerIF
public void down(SyslogIF syslog, java.lang.String reason)
SyslogBackLogHandlerIF
down
in interface SyslogBackLogHandlerIF
syslog
- - SyslogIF instance causing this down conditionreason
- - reason given for the down conditionpublic void up(SyslogIF syslog)
SyslogBackLogHandlerIF
up
in interface SyslogBackLogHandlerIF
syslog
- - SyslogIF instance which is now availablepublic void log(SyslogIF syslog, int level, java.lang.String message, java.lang.String reason)
log
in interface SyslogBackLogHandlerIF
syslog
- - SyslogIF instance which cannot handle this log eventlevel
- - message levelmessage
- - message (in String form)reason
- - reason given for why this message could not be handled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |