public class LoggerSink extends AbstractSink
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| Constructor and Description |
|---|
LoggerSink() |
| Modifier and Type | Method and Description |
|---|---|
Sink.Status |
process()
Requests the sink to attempt to consume data from attached channel
|
getChannel, getLifecycleState, getName, setChannel, setName, start, stop, toStringpublic 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.
EventDeliveryException - In case of any kind of failure to
deliver data to the next hop destination.Copyright © 2009-2014 Apache Software Foundation. All Rights Reserved.