Files
filegator/docs/configuration/logging.md
Milos Stojanovic fff29ef124 fix
2019-06-18 15:46:40 +02:00

25 lines
946 B
Markdown

## Configuring Logging service
Logging is provided via powerful [Monolog](https://github.com/Seldaek/monolog) library. Please check their docs for more info.
Default logger handler will use ```/private/logs/app.log``` file to store application logs:
```
'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 use. Some of them are listed [here](https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#handlers).