@Override
public EventSink create(Context context, Object... argv) {
Preconditions.checkArgument(argv.length <= 1,
"usage: console[(format)]");
OutputFormat fmt = DebugOutputFormat.builder().create();
if (argv.length >= 1) {
try {
fmt = FlumeBuilder.createFormat(FormatFactory.get(), argv[0]);
} catch (FlumeSpecException e) {
LOG.error("Bad output format name " + argv[0], e);