Created
May 24, 2018 14:22
-
-
Save mykidong/b3bbc185194a167b88b95f0207be82e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.