Skip to content

Instantly share code, notes, and snippets.

@mykidong
Created May 24, 2018 14:22
Show Gist options
  • Save mykidong/b3bbc185194a167b88b95f0207be82e5 to your computer and use it in GitHub Desktop.
Save mykidong/b3bbc185194a167b88b95f0207be82e5 to your computer and use it in GitHub Desktop.
private static Logger eventLogger = LoggerFactory.getLogger("event-logger");
...
@Override
public void onEvent(EventLog eventLog, long sequence, boolean endOfBatch)
throws Exception {
String eventType = eventLog.getEventType();
String json = eventLog.getValue();
if (this.eventLoggingEnabled) {
eventLogger.info(json);
}
}
@mykidong
Copy link
Author

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment