public interface SyslogBackLogHandlerIF
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.
| Modifier and Type | Method and Description |
|---|---|
void |
down(SyslogIF syslog,
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,
String message,
String reason) |
void |
up(SyslogIF syslog)
Implement up(syslog) to notify/log when the syslog protocol becomes available after a down condition.
|
void initialize()
throws SyslogRuntimeException
SyslogRuntimeExceptionvoid down(SyslogIF syslog, 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, String message, 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 handledSyslogRuntimeException - - throwing this Exception activates the next backlogHandler in the chainCopyright © 2017. All rights reserved.