/** * {@inheritDoc} */ @Override protected void _write(Object msg, Object... args) throws IOException, InterruptedException { writeFormattedMsg(formatter.format(msg, args)); }
/** * {@inheritDoc} */ @Override protected void _log(TrackingActivity activity) throws IOException { writeFormattedMsg(formatter.format(activity)); }
/** * {@inheritDoc} */ @Override protected void _log(long ttl, Source src, OpLevel sev, String msg, Object... args) throws IOException { writeFormattedMsg(formatter.format(ttl, src, msg, args)); }
/** * {@inheritDoc} */ @Override protected void _log(Snapshot snapshot) throws IOException { writeFormattedMsg(formatter.format(snapshot)); }
/** * {@inheritDoc} */ @Override protected void _log(TrackingEvent event) throws IOException { writeFormattedMsg(formatter.format(event)); }
@Override public boolean filter(EventSink sink, long ttl, Source source, OpLevel level, String msg, Object... args) { if (isDuplicate(null, sink.getEventFormatter().format(ttl, source, level, msg, args))) { return false; } else if (msgPattern != null && !msgPattern.matcher(sink.getEventFormatter().format(ttl, source, level, msg, args)).matches()) { return false; } return passLevel(level, sink); }
@Override protected void _log(TrackingActivity activity) throws IOException { writeLine(getEventFormatter().format(activity)); }
@Override protected void _log(long ttl, Source src, OpLevel sev, String msg, Object... args) { _writeLog(getEventFormatter().format(ttl, src, sev, msg, args)); }
@Override protected void _log(Snapshot snapshot) throws IOException { writeLine(getEventFormatter().format(snapshot)); }
@Override protected void _write(Object msg, Object... args) throws IOException, InterruptedException { writeLine(getEventFormatter().format(msg, args)); }
@Override protected void _log(Snapshot snapshot) { _writeLog(getEventFormatter().format(snapshot)); }
@Override protected void _log(long ttl, Source src, OpLevel sev, String msg, Object... args) throws IOException { writeLine(getEventFormatter().format(ttl, src, sev, msg, args)); }
@Override protected void _write(Object msg, Object... args) throws IOException, InterruptedException { _writeLog(getEventFormatter().format(msg, args)); }
@Override protected void _log(TrackingEvent event) throws IOException { writeLine(getEventFormatter().format(event)); }
@Override protected void _log(TrackingEvent event) throws IOException { _writeLog(getEventFormatter().format(event)); }
@Override protected void _log(TrackingActivity activity) throws IOException { _writeLog(getEventFormatter().format(activity)); }
@Override protected void _write(Object msg, Object... args) throws IOException, InterruptedException { writeLine(new ProducerRecord<String, String>(getName(), getEventFormatter().format(msg, args))); }
@Override protected void _log(long ttl, Source src, OpLevel sev, String msg, Object... args) throws IOException { writeLine( new ProducerRecord<>(getName(), src.getFQName(), getEventFormatter().format(ttl, src, sev, msg, args))); }
@Override protected void _log(TrackingActivity activity) throws IOException { writeLine(new ProducerRecord<>(getName(), activity.getName(), getEventFormatter().format(activity))); }
@Override protected void _log(long ttl, Source src, OpLevel sev, String msg, Object... args) { writeLine(sev, getEventFormatter().format(ttl, src, sev, msg, args), Utils.getThrowable(args)); }