Skip to content

Instantly share code, notes, and snippets.

@rkhmelyuk
Created February 21, 2017 05:42
Show Gist options
  • Save rkhmelyuk/8f9a4ce2eef9b06670c584566355abbc to your computer and use it in GitHub Desktop.
Save rkhmelyuk/8f9a4ce2eef9b06670c584566355abbc to your computer and use it in GitHub Desktop.
final AggregatedLogData logData = new AggregatedLogData();
logData.setLevel(AggregatedLogLevel.FULL);
try {
// .. execute code here
} catch (Exception e) {
log.error("Failed to process rules", e);
} finally {
log.info(logData.toJsonString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment