public class LoggerSink extends AbstractSink implements Configurable
A Sink implementation that logs all events received at the INFO level
to the org.apache.flume.sink.LoggerSink logger.
WARNING: Logging events can potentially introduce performance degradation.
Configuration options
This sink has no configuration parameters.
Metrics
TODO
Sink.Status| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_BYTE_DUMP |
static String |
MAX_BYTES_DUMP_KEY |
| Constructor and Description |
|---|
LoggerSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
Sink.Status |
process()
Requests the sink to attempt to consume data from attached channel
|
getChannel, getLifecycleState, getName, setChannel, setName, start, stop, toStringpublic static final int DEFAULT_MAX_BYTE_DUMP
public static final String MAX_BYTES_DUMP_KEY
public void configure(Context context)
ConfigurableRequest the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure in interface Configurablepublic Sink.Status process() throws EventDeliveryException
SinkRequests the sink to attempt to consume data from attached channel
Note: This method should be consuming from the channel within the bounds of a Transaction. On successful delivery, the transaction should be committed, and on failure it should be rolled back.
process in interface SinkEventDeliveryException - In case of any kind of failure to
deliver data to the next hop destination.Copyright © 2009-2022 Apache Software Foundation. All Rights Reserved.