package gov.fubar.foo.bar;

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

public class Bar {
    private static Logger logger = LogManager.getLogger();
    public Bar() {
        logger.info("Instantiated");
    }
}

Create Bar.java