public class PrintStreamSyslogBackLogHandler 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 boolean |
appendLinefeed |
protected PrintStream |
printStream |
appendReason| Constructor and Description |
|---|
PrintStreamSyslogBackLogHandler(PrintStream printStream) |
PrintStreamSyslogBackLogHandler(PrintStream printStream,
boolean appendLinefeed) |
PrintStreamSyslogBackLogHandler(PrintStream printStream,
boolean appendLinefeed,
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 PrintStream printStream
protected boolean appendLinefeed
public PrintStreamSyslogBackLogHandler(PrintStream printStream)
public PrintStreamSyslogBackLogHandler(PrintStream printStream, boolean appendLinefeed)
public PrintStreamSyslogBackLogHandler(PrintStream printStream, boolean appendLinefeed, boolean appendReason)
public void initialize()
throws SyslogRuntimeException
SyslogBackLogHandlerIFSyslogRuntimeExceptionpublic 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.