|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SyslogBackLogHandlerIF
SyslogBackLogHandlerIF provides a last-chance mechanism to log messages that fail (for whatever reason) within the rest of Syslog.
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.
Implementing the down(SyslogIF) method is an excellent way to add some sort of notification to your application when a Syslog service is unavailable.
Implementing the up(SyslogIF) method can be used to notify your application when a Syslog service has returned.
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. |
Method Detail |
---|
void initialize() throws SyslogRuntimeException
SyslogRuntimeException
void down(SyslogIF syslog, java.lang.String reason)
syslog
- - SyslogIF instance causing this down conditionreason
- - reason given for the down conditionvoid up(SyslogIF syslog)
syslog
- - SyslogIF instance which is now availablevoid log(SyslogIF syslog, int level, java.lang.String message, java.lang.String reason) throws SyslogRuntimeException
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
SyslogRuntimeException
- - throwing this Exception activates the next backlogHandler in the chain
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |