Syslog backend for photon
-
Add the module in your project
composer require "photon/log-syslog:dev-master"
or for a specific version
composer require "photon/log-syslog:1.0.0"
-
Add the log backend in photon configuration
'log_handlers' => array( '\photon\log\SyslogBackend', ),
-
Configure the backend
'log_syslog' => array( 'ident' => 'MyApp', 'facility' => LOG_USER, ),
-
Enjoy !