Showing 2 of 2 total issues
LogCaptor
has 23 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public final class LogCaptor implements AutoCloseable {
private static final Map<String, Level> LOG_LEVEL_CONTAINER = new HashMap<>();
private static final List<String> CONSOLE_APPENDER_NAMES = Arrays.asList("console", "CONSOLE");
Method apply
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public LogEvent apply(ILoggingEvent iLoggingEvent) {
String message = iLoggingEvent.getMessage();
String formattedMessage = iLoggingEvent.getFormattedMessage();
String level = iLoggingEvent.getLevel().toString();