title: How to check if log4j2 has been configured or not
body: <p>We're all familiar with this message when you don't provide a configuration for log4j2:</p>
  
  <pre><code>ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
  </code></pre>
  
  <p>How can I check if log4j2 is not yet configured so that I can initialize with a default configuration if needed?</p>