HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/xibo/vendor/flynsarmy/slim-monolog/Flynsarmy/SlimMonolog/README.markdown
# Monolog Logging for Slim Framework

This repository adds support for logging to [Monolog](https://github.com/Seldaek/monolog) to the [Slim Framework](http://www.slimframework.com/).

# Installation

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

```php
$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](http://getcomposer.org/). If you are not
using Composer, you must manually `require` the log writer class before instantiating it.

# License

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