Hakky54/log-captor

View on GitHub

Showing 2 of 2 total issues

LogCaptor has 23 methods (exceeds 20 allowed). Consider refactoring.
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");

Severity: Minor
Found in src/main/java/nl/altindag/log/LogCaptor.java - About 2 hrs to fix

    Method apply has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        public LogEvent apply(ILoggingEvent iLoggingEvent) {
            String message = iLoggingEvent.getMessage();
            String formattedMessage = iLoggingEvent.getFormattedMessage();
            String level = iLoggingEvent.getLevel().toString();
    Severity: Minor
    Found in src/main/java/nl/altindag/log/mapper/LogEventMapper.java - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language