title: slim logging not work
body: <p>I use slim php framework and i want to log my exceptions in my custom error function, i follow the instructions on <a href="https://github.com/codeguy/Slim-Extras" rel="nofollow">https://github.com/codeguy/Slim-Extras</a>. But it doesn't work like expected. I have opened a file inside my '../api/views' directory and write some bullshit to test. So my path is okay and the permissions are given. </p>
  
  <p>Here is my code snippet</p>
  
  <pre><code> $app = new Slim\Slim(array(
    'debug' =&gt; false,
    'log.enabled' =&gt; true,
    'log.level' =&gt; Slim\Log::DEBUG,
    'templates.path' =&gt; '../api/views',
    'slim.errors' =&gt; new Slim\Extras\Log\DateTimeFileWriter(array(
        'path' =&gt; '../api/logs',
        'name_format' =&gt; 'Y-m-d',
        'extension' =&gt; 'log',
        'message_format' =&gt; '%label% - %date% - %message%'
    ))
  ));
  
  $app-&gt;get('/', function () use ($app) {
    $data = $app-&gt;render('index.php');
  });
  
  $app-&gt;notFound(function () use ($app) {
    $app-&gt;redirect('/');
  });
  
  $app-&gt;error(function(Exception $e) use ($app) {
    $app-&gt;log-&gt;error($e-&gt;getMessage());
  
    $app-&gt;response-&gt;setStatus(400);
  
    $app-&gt;response-&gt;setBody(
      json_encode(
        array(
          'code' =&gt; '401',
          'message' =&gt; $e-&gt;getMessage()
        )
      )
    );
  });
  </code></pre>
  
  <p>Some one an idea or another solution to log? i have used different ways but nothing worked.</p>
  
  <p>Here my composer.json</p>
  
  <pre><code>{
    "require": {
      "slim/slim": "2.6.2",
      "slim/extras": "^2.0",
      "slim/middleware": "^1.0",
      "twig/twig": "~1.0",
      "mpdf/mpdf": "^6.0"
    },
    "autoload": {
      "classmap": [
        "api"
      ]
    }
  }
  </code></pre>
  
  <p>EDIT:
  No exceptions or errors are thrown. Everything work like expected except the logging. It looks like slim ignores it.</p>