<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
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;
*/
abstract class AbstractLogger implements LoggerInterface
{
+ const NAME = '';
+
/**
* The output channel of this logger
* @var string
/**
* The Introspection for the current call
- * @var Introspection
+ * @var IHaveCallIntrospections
*/
protected $introspection;
/**
* @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;
}
}
- return @json_encode($output);
+ return @json_encode($output, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
}
/**