package com.devproserv.courses.command;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.http.HttpServletRequest;

import static com.devproserv.courses.config.MainConfig.NOT_FOUND_PAGE;

/**
 * {@code NotFound} represents a non-existing command
 *
 */
public class NotFound implements Command {

    private static final Logger logger = LogManager.getLogger(NotFound.class.getName());

    @Override
    public String path(HttpServletRequest request) {
        logger.warn("Command not found!");
        return NOT_FOUND_PAGE;
    }
}

@@ -38,93 +38,8 @@
 d;%0A%0A
-import org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0A%0A
 impo
@@ -164,26 +164,9 @@
 %0A * 
-%7B@code NotFound%7D r
+R
 epre
@@ -248,99 +248,8 @@
 d %7B%0A
-%0A    private static final Logger logger = LogManager.getLogger(NotFound.class.getName());%0A%0A
     
@@ -315,51 +315,8 @@
 ) %7B%0A
-        logger.warn(%22Command not found!%22);%0A
     

Remove logger from NotFound command