]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Logger/SyslogLogger.php
Refactored Logging environment (cleaned up)
[friendica.git] / src / Util / Logger / SyslogLogger.php
index 19395157d295e12b46fb65ed8e625a904092b84a..5cb1f8c9e69b13a4eca3016d69099deca7f54f09 100644 (file)
@@ -3,6 +3,7 @@
 namespace Friendica\Util\Logger;
 
 use Friendica\Network\HTTPException\InternalServerErrorException;
+use Friendica\Util\Introspection;
 use Friendica\Util\Strings;
 use Psr\Log\InvalidArgumentException;
 use Psr\Log\LoggerInterface;
@@ -75,7 +76,7 @@ class SyslogLogger implements LoggerInterface
        private $logLevel;
 
        /**
-        * The Introspector for the current call
+        * The Introspection for the current call
         * @var Introspection
         */
        private $introspection;
@@ -87,10 +88,13 @@ class SyslogLogger implements LoggerInterface
        private $logUid;
 
        /**
-        * @param string $channel     The output channel
-        * @param string $level       The minimum loglevel at which this logger will be triggered
-        * @param int    $logOpts     Indicates what logging options will be used when generating a log message
-        * @param int    $logFacility Used to specify what type of program is logging the message
+        * @param string        $channel       The output channel
+        * @param Introspection $introspection The introspection of the current call
+        * @param string        $level         The minimum loglevel at which this logger will be triggered
+        * @param int           $logOpts       Indicates what logging options will be used when generating a log message
+        * @param int           $logFacility   Used to specify what type of program is logging the message
+        *
+        * @throws \Exception
         */
        public function __construct($channel, Introspection $introspection, $level = LogLevel::NOTICE, $logOpts = LOG_PID, $logFacility = LOG_USER)
        {