title: Logback Could NOT find resource logback.xml
body: <p>It's working to output to console.
  logger.info("Hello world info."); //works just fine...</p>
  
  <p>However the following code returns 'Could NOT find resource' error:</p>
  
  <pre><code>Logger logger = LoggerFactory.getLogger("framework.Utilities._Test");
  LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
  StatusPrinter.print(lc);
  </code></pre>
  
  <p>I'm using the following XML:</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
      &lt;file&gt;C:\Reports\logBack.log&lt;/file&gt;
      &lt;!-- encoders are assigned by default the type
           ch.qos.logback.classic.encoder.PatternLayoutEncoder --&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%date %level [%thread] %logger{10} [%file:%line] %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  
  &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  
  &lt;root level="debug"&gt;
      &lt;appender-ref ref="FILE" /&gt;
      &lt;appender-ref ref="STDOUT" /&gt;
  &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And I've copied it into the root of several locations in my classpath (Windows7\Environment Variables\System Variables\Path) but I still get the error 'resource not found'. Any ideas? </p>