diff options
Diffstat (limited to 'lib/private/Log/Syslog.php')
-rw-r--r-- | lib/private/Log/Syslog.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Log/Syslog.php b/lib/private/Log/Syslog.php index be8ecdebb2e..7bd7467f5c4 100644 --- a/lib/private/Log/Syslog.php +++ b/lib/private/Log/Syslog.php @@ -27,8 +27,9 @@ namespace OC\Log; use OCP\ILogger; use OCP\IConfig; +use OCP\Log\IWriter; -class Syslog implements IWritable { +class Syslog implements IWriter { static protected $levels = [ ILogger::DEBUG => LOG_DEBUG, ILogger::INFO => LOG_INFO, @@ -48,7 +49,7 @@ class Syslog implements IWritable { * @param string $message * @param int $level */ - public function write($app, $message, $level) { + public function write(string $app, $message, int $level) { $syslog_level = self::$levels[$level]; syslog($syslog_level, '{'.$app.'} '.$message); } |