Files
filegator/docs/configuration/logging.md
Milos Stojanovic 18b92d7b76 docs fix
2019-06-21 11:59:42 +02:00

985 B

currentMenu
currentMenu
logging

Configuring Logging service

Logging is provided trough the powerful Monolog library. Please check their docs for more info.

Default handler will use simple private/logs/app.log file to store application logs and errors.

        'Filegator\Services\Logger\LoggerInterface' => [
            'handler' => '\Filegator\Services\Logger\Adapters\MonoLogger',
            'config' => [
                'monolog_handlers' => [
                    function () {
                        return new \Monolog\Handler\StreamHandler(
                            __DIR__.'/private/logs/app.log',
                            \Monolog\Logger::DEBUG
                        );
                    },
                ],
            ],
        ],

There are many different handlers you can add on top of the stack (monolog_handlers array). Some of them are listed here.