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

public class A {
    private static final Logger log = LogManager.getLogger(A.class);

    void foo() {
        log
    }
}