I have the log4j-api-2.0.0.jar
and log4j-core-2.0.2.jar
import into my build path. But somehow the following code were fail:
import org.apache.logging.log4j.core.Logger;
public class TheClass {
private static Logger log = Logger.getLogger(TheClass.class);
...
And the error message shows that:
The method getLogger(Class<TheClass>) is undefined for the type Logger
I am just so curious is getLogger()
no longer a valid method in Logger?