title: Resolve Java Checkstyle Error: Name 'logger' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'
body: <p>Using the Eclipse Checkstyle plugin I see this error:</p>
  
  <blockquote>
    <p>Name 'logger' must match pattern <code>'^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'</code>.</p>
  </blockquote>
  
  <p>I resolved this error by changing:</p>
  
  <p><code>private static final Logger logger = Logger.getLogger(someClass.class);</code></p>
  
  <p>to </p>
  
  <p><code>private static final Logger LOGGER = Logger.getLogger(someClass.class);</code></p>
  
  <p><strong>Why is this a checkstyle warning?</strong></p>