* [ADD] Syslog and remote syslog through Monolog

* [MOD] UI tweaks
This commit is contained in:
nuxsmin
2018-03-22 17:54:39 +01:00
committed by Rubén D
parent fef2c09616
commit 43757e1560
16 changed files with 501 additions and 24 deletions

View File

@@ -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));
}
}