mirror of
https://github.com/friendica/friendica
synced 2025-02-02 02:19:47 +00:00
Fix Introspection
This commit is contained in:
parent
8eed43a7dd
commit
5358e195d7
3 changed files with 8 additions and 8 deletions
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
namespace Friendica\Core\Logger\Type;
|
namespace Friendica\Core\Logger\Type;
|
||||||
|
|
||||||
|
use Friendica\Core\Logger\Capabilities\IHaveCallIntrospections;
|
||||||
use Friendica\Core\Logger\Exception\LoggerException;
|
use Friendica\Core\Logger\Exception\LoggerException;
|
||||||
use Friendica\Core\Logger\Util\Introspection;
|
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
@ -46,7 +46,7 @@ abstract class AbstractLogger implements LoggerInterface
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Introspection for the current call
|
* The Introspection for the current call
|
||||||
* @var Introspection
|
* @var IHaveCallIntrospections
|
||||||
*/
|
*/
|
||||||
protected $introspection;
|
protected $introspection;
|
||||||
|
|
||||||
|
@ -69,11 +69,11 @@ abstract class AbstractLogger implements LoggerInterface
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $channel The output channel
|
* @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
|
* @throws LoggerException
|
||||||
*/
|
*/
|
||||||
public function __construct(string $channel, Introspection $introspection)
|
public function __construct(string $channel, IHaveCallIntrospections $introspection)
|
||||||
{
|
{
|
||||||
$this->channel = $channel;
|
$this->channel = $channel;
|
||||||
$this->introspection = $introspection;
|
$this->introspection = $introspection;
|
||||||
|
|
|
@ -23,12 +23,12 @@ namespace Friendica\Core\Logger\Type;
|
||||||
|
|
||||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
use Friendica\Core\Hooks\Capabilities\IAmAStrategy;
|
use Friendica\Core\Hooks\Capabilities\IAmAStrategy;
|
||||||
|
use Friendica\Core\Logger\Capabilities\IHaveCallIntrospections;
|
||||||
use Friendica\Core\Logger\Exception\LoggerArgumentException;
|
use Friendica\Core\Logger\Exception\LoggerArgumentException;
|
||||||
use Friendica\Core\Logger\Exception\LoggerException;
|
use Friendica\Core\Logger\Exception\LoggerException;
|
||||||
use Friendica\Core\Logger\Exception\LogLevelException;
|
use Friendica\Core\Logger\Exception\LogLevelException;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\FileSystem;
|
use Friendica\Util\FileSystem;
|
||||||
use Friendica\Core\Logger\Util\Introspection;
|
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,7 +87,7 @@ class StreamLogger extends AbstractLogger implements IAmAStrategy
|
||||||
* @throws LoggerArgumentException
|
* @throws LoggerArgumentException
|
||||||
* @throws LogLevelException
|
* @throws LogLevelException
|
||||||
*/
|
*/
|
||||||
public function __construct(string $channel, IManageConfigValues $config, Introspection $introspection, FileSystem $fileSystem, string $level = LogLevel::DEBUG)
|
public function __construct(string $channel, IManageConfigValues $config, IHaveCallIntrospections $introspection, FileSystem $fileSystem, string $level = LogLevel::DEBUG)
|
||||||
{
|
{
|
||||||
$this->fileSystem = $fileSystem;
|
$this->fileSystem = $fileSystem;
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace Friendica\Core\Logger\Type;
|
||||||
|
|
||||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
use Friendica\Core\Hooks\Capabilities\IAmAStrategy;
|
use Friendica\Core\Hooks\Capabilities\IAmAStrategy;
|
||||||
|
use Friendica\Core\Logger\Capabilities\IHaveCallIntrospections;
|
||||||
use Friendica\Core\Logger\Exception\LoggerException;
|
use Friendica\Core\Logger\Exception\LoggerException;
|
||||||
use Friendica\Core\Logger\Exception\LogLevelException;
|
use Friendica\Core\Logger\Exception\LogLevelException;
|
||||||
use Friendica\Core\Logger\Util\Introspection;
|
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,7 +106,7 @@ class SyslogLogger extends AbstractLogger implements IAmAStrategy
|
||||||
* @throws LogLevelException
|
* @throws LogLevelException
|
||||||
* @throws LoggerException
|
* @throws LoggerException
|
||||||
*/
|
*/
|
||||||
public function __construct(string $channel, IManageConfigValues $config, Introspection $introspection, string $level = LogLevel::NOTICE)
|
public function __construct(string $channel, IManageConfigValues $config, IHaveCallIntrospections $introspection, string $level = LogLevel::NOTICE)
|
||||||
{
|
{
|
||||||
parent::__construct($channel, $introspection);
|
parent::__construct($channel, $introspection);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue