debug: Correct $level PHPDoc param datatype in SyslogHandler.php
authorAlangi Derick <alangiderick@gmail.com>
Mon, 3 Dec 2018 11:00:49 +0000 (12:00 +0100)
committerAlangi Derick <alangiderick@gmail.com>
Mon, 3 Dec 2018 11:10:43 +0000 (12:10 +0100)
In Monolog\Logger (Logger.php), the logger levels are constants (interger values).
Logger::DEBUG is a constant (int) with value 100 which depicts that error logging
level. Datatype of these values; DEBUG, INFO, WARNING, etc are all integers not
strings.

Change-Id: I1cc67381bc64800241f5f9b7232ffe5419388d8a

includes/debug/logger/monolog/SyslogHandler.php

index 780ea94..ee3e9a1 100644 (file)
@@ -62,7 +62,7 @@ class SyslogHandler extends SyslogUdpHandler {
         * @param string $host Syslog host
         * @param int $port Syslog port
         * @param int $facility Syslog message facility
-        * @param string $level The minimum logging level at which this handler
+        * @param int $level The minimum logging level at which this handler
         *   will be triggered
         * @param bool $bubble Whether the messages that are handled can bubble up
         *   the stack or not