LogManager { public void logError(Throwable e) { String errorMessage = e.getMessage(); String errorCode = errorCode(e); Marker marker = Markers.errorCode(errorCode); if (e instanceof ErrorCode && ((ErrorCode) e).severity() == Severity.WARN) { LOGGER.warn(marker, errorMessage, e); } else { LOGGER.error(marker, errorMessage, e); } }  ActionLog begin(String message, String id); void end(String message); void logError(Throwable e); void maskFields(String... fields); static final ThreadLocal<ActionLog> CURRENT_ACTION_LOG; static final String APP_NAME; static final IdGenerator ID_GENERATOR; public LogAppender appender; }
@Test void logError() { logManager.logError(new TestException()); }