mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [ADD] Syslog and remote syslog through Monolog
* [MOD] UI tweaks
This commit is contained in:
@@ -31,6 +31,8 @@ use SP\Config\Config;
|
||||
use SP\Core\Context\ContextInterface;
|
||||
use SP\Core\Events\EventDispatcher;
|
||||
use SP\Providers\Log\LogHandler;
|
||||
use SP\Providers\Log\RemoteSyslogHandler;
|
||||
use SP\Providers\Log\SyslogHandler;
|
||||
use SP\Providers\Mail\MailHandler;
|
||||
use SP\Providers\Notification\NotificationHandler;
|
||||
use SP\Util\Checks;
|
||||
@@ -123,6 +125,14 @@ abstract class ModuleBase
|
||||
$eventDispatcher->attach($this->container->get(MailHandler::class));
|
||||
}
|
||||
|
||||
if ($this->configData->isSyslogEnabled()) {
|
||||
$eventDispatcher->attach($this->container->get(SyslogHandler::class));
|
||||
}
|
||||
|
||||
if ($this->configData->isSyslogRemoteEnabled()) {
|
||||
$eventDispatcher->attach($this->container->get(RemoteSyslogHandler::class));
|
||||
}
|
||||
|
||||
$eventDispatcher->attach($this->container->get(NotificationHandler::class));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user