]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Logger/Type/AbstractLogger.php
Use the owner, not the author
[friendica.git] / src / Core / Logger / Type / AbstractLogger.php
index bc4b00eceab31d1da42d57287a83796859e00fe0..7de0e416057284894fd16587e0738a67e69b01aa 100644 (file)
@@ -21,8 +21,8 @@
 
 namespace Friendica\Core\Logger\Type;
 
+use Friendica\Core\Logger\Capability\IHaveCallIntrospections;
 use Friendica\Core\Logger\Exception\LoggerException;
-use Friendica\Core\Logger\Util\Introspection;
 use Friendica\Util\Strings;
 use Psr\Log\LoggerInterface;
 use Psr\Log\LogLevel;
@@ -38,6 +38,8 @@ use Psr\Log\LogLevel;
  */
 abstract class AbstractLogger implements LoggerInterface
 {
+       const NAME = '';
+
        /**
         * The output channel of this logger
         * @var string
@@ -46,7 +48,7 @@ abstract class AbstractLogger implements LoggerInterface
 
        /**
         * The Introspection for the current call
-        * @var Introspection
+        * @var IHaveCallIntrospections
         */
        protected $introspection;
 
@@ -69,11 +71,11 @@ abstract class AbstractLogger implements LoggerInterface
 
        /**
         * @param string        $channel       The output channel
-        * @param Introspection $introspection The introspection of the current call
+        * @param IHaveCallIntrospections $introspection The introspection of the current call
         *
         * @throws LoggerException
         */
-       public function __construct(string $channel, Introspection $introspection)
+       public function __construct(string $channel, IHaveCallIntrospections $introspection)
        {
                $this->channel       = $channel;
                $this->introspection = $introspection;