Good day!
I did everything exactly as described in this manual: http://logging.apache.org/log4j/2.x/manual/flowtracing.html
Connected: log4j-api-2.0-beta1.jar
The xml file is listed in the default package and named log4j2.xml.
When run in the LogManager.getLogger method (TestService.class.getName ()); NullPointerException is thrown.
I just can not understand what it is connected with.