public class Syslog4jBackLogHandler extends AbstractSyslogBackLogHandler
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.
| Modifier and Type | Field and Description |
|---|---|
protected int |
downLevel |
protected SyslogIF |
syslog |
protected int |
upLevel |
appendReason| Constructor and Description |
|---|
Syslog4jBackLogHandler(String protocol) |
Syslog4jBackLogHandler(String protocol,
boolean appendReason) |
Syslog4jBackLogHandler(SyslogIF syslog) |
Syslog4jBackLogHandler(SyslogIF syslog,
boolean appendReason) |
| 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.
|
combineprotected SyslogIF syslog
protected int downLevel
protected int upLevel
public Syslog4jBackLogHandler(String protocol)
public Syslog4jBackLogHandler(String protocol, boolean appendReason)
public Syslog4jBackLogHandler(SyslogIF syslog)
public Syslog4jBackLogHandler(SyslogIF syslog, boolean appendReason)
public void initialize()
throws SyslogRuntimeException
SyslogBackLogHandlerIFSyslogRuntimeExceptionpublic void 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 chainpublic void down(SyslogIF syslog, String reason)
SyslogBackLogHandlerIFsyslog - - SyslogIF instance causing this down conditionreason - - reason given for the down conditionpublic void up(SyslogIF syslog)
SyslogBackLogHandlerIFsyslog - - SyslogIF instance which is now availableCopyright © 2017. All rights reserved.