public abstract class Appender extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Appender.AppenderPipeline |
static class |
Appender.AppenderPipelineImpl |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
static int |
CODE_CLOSE_FAILURE |
static int |
CODE_FILE_OPEN_FAILURE |
static int |
CODE_FLUSH_FAILURE |
static int |
CODE_WRITE_FAILURE |
protected Layout |
layout |
static String |
LINE_SEP |
protected String |
name |
| Constructor and Description |
|---|
Appender() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
protected abstract void |
append(LoggingEvent event) |
abstract void |
close() |
void |
doAppend(LoggingEvent event) |
void |
finalize() |
Layout |
getLayout() |
String |
getName() |
void |
handleError(String message) |
void |
handleError(String message,
Exception e,
int errorCode) |
void |
setLayout(Layout layout) |
void |
setName(String name) |
public static final int CODE_WRITE_FAILURE
public static final int CODE_FLUSH_FAILURE
public static final int CODE_CLOSE_FAILURE
public static final int CODE_FILE_OPEN_FAILURE
public static final String LINE_SEP
protected Layout layout
protected String name
protected boolean closed
public void activateOptions()
protected abstract void append(LoggingEvent event)
public Layout getLayout()
public final String getName()
public void doAppend(LoggingEvent event)
public void setLayout(Layout layout)
public void setName(String name)
public abstract void close()
public void handleError(String message)
Copyright © 2012–2023 Apache Software Foundation. All rights reserved.