event = rewritePolicy.rewrite(event);
}
final String key = config.getStrSubstitutor().replace(event, routes.getPattern());
final AppenderControl control = getControl(key, event);
if (control != null) {
control.callAppender(event);
}
}
private synchronized AppenderControl getControl(final String key, final LogEvent event) {
AppenderControl control = appenders.get(key);