Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created December 18, 2021 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdi-team/665f4013e9af39c5a203e8378da38fce to your computer and use it in GitHub Desktop.
Save zdi-team/665f4013e9af39c5a203e8378da38fce to your computer and use it in GitHub Desktop.
private void tryCallAppender(final LogEvent event) {
try {
appender.append(event);
} catch (final RuntimeException error) {
handleAppenderError(event, error);
} catch (final Exception error) {
handleAppenderError(event, new AppenderLoggingException(error));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment