mirror of
https://github.com/filegator/filegator.git
synced 2025-10-23 17:36:21 +02:00
25 lines
916 B
Markdown
25 lines
916 B
Markdown
|
|
## Configuring Logging service
|
|
|
|
Logging is provided trough the powerful [Monolog](https://github.com/Seldaek/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 use. Some of them are listed [here](https://github.com/Seldaek/monolog#documentation).
|