public class NullSyslogBackLogHandler extends Object implements 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.
| Modifier and Type | Field and Description |
|---|---|
static NullSyslogBackLogHandler |
INSTANCE |
| Constructor and Description |
|---|
NullSyslogBackLogHandler() |
| 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.
|
public static final NullSyslogBackLogHandler INSTANCE
public void initialize()
SyslogBackLogHandlerIFinitialize in interface SyslogBackLogHandlerIFpublic void down(SyslogIF syslog, String reason)
SyslogBackLogHandlerIFdown in interface SyslogBackLogHandlerIFsyslog - - SyslogIF instance causing this down conditionreason - - reason given for the down conditionpublic void up(SyslogIF syslog)
SyslogBackLogHandlerIFup in interface SyslogBackLogHandlerIFsyslog - - SyslogIF instance which is now availablepublic void log(SyslogIF syslog, int level, String message, String reason)
log in interface SyslogBackLogHandlerIFsyslog - - SyslogIF instance which cannot handle this log eventlevel - - message levelmessage - - message (in String form)reason - - reason given for why this message could not be handledCopyright © 2017. All rights reserved.