title: LogManager.getLogger() is unable to determine class name on Java 11
body: <p>I'm using log4j2 (2.11.1) with Java 11 and attempting to get a <code>Logger</code> object using:</p>
  
  <pre><code>private static final Logger LOG = LogManager.getLogger();
  </code></pre>
  
  <p>(Imported from <code>log4j-api</code> in <code>org.apache.logging.log4j</code>)</p>
  
  <p>At runtime, I receive the following error:</p>
  
  <pre><code>WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
  Exception in thread "main" java.lang.ExceptionInInitializerError
  Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
  at 
  org.apache.logging.log4j.LogManager.callerClass(LogManager.java:555)
      at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:580)
      at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:567)
      at app.App.&lt;clinit&gt;(App.java:11)
  </code></pre>
  
  <p>Which does make sense - getCallerClass is not supported and so the logger is unable to determine the class name.</p>
  
  <p>Is it supposed to work this way? Surely I don't have to hard-code the class name into each logger?</p>