Monolog logging support Slim Framework

v1.0.1 2015-07-15 22:14 UTC

This package is auto-updated.

Last update: 2022-11-10 04:22:11 UTC


This repository adds support for logging to Monolog to the Slim Framework.


MonologWriter takes an array of handlers, an array of processors and a logger name.

$logger = new \Flynsarmy\SlimMonolog\Log\MonologWriter(array(
    'handlers' => array(
        new \Monolog\Handler\StreamHandler('./logs/'.date('Y-m-d').'.log'),

$app = new \Slim\Slim(array(
    'log.writer' => $logger,

This example assumes you are autoloading dependencies using Composer. If you are not using Composer, you must manually require the log writer class before instantiating it.


The Slim-Monolog is released under the MIT public license.