mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
Fix SyslogLogger and tests
This commit is contained in:
parent
bca6abf4ab
commit
8dbbf882a8
5 changed files with 62 additions and 16 deletions
|
@ -21,10 +21,8 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Logger;
|
||||
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\Logger\Capabilities\IHaveCallIntrospections;
|
||||
use Friendica\Core\Logger\Type\SyslogLogger;
|
||||
use Friendica\Core\Logger\Util\Introspection;
|
||||
use Psr\Log\LogLevel;
|
||||
|
||||
/**
|
||||
* Wraps the SyslogLogger for replacing the syslog call with a string field.
|
||||
|
@ -33,9 +31,9 @@ class SyslogLoggerWrapper extends SyslogLogger
|
|||
{
|
||||
private $content;
|
||||
|
||||
public function __construct($channel, IManageConfigValues $config, Introspection $introspection, $level = LogLevel::NOTICE)
|
||||
public function __construct(string $channel, IHaveCallIntrospections $introspection, string $logLevel, string $logOptions, string $logFacility)
|
||||
{
|
||||
parent::__construct($channel, $config, $introspection, $level);
|
||||
parent::__construct($channel, $introspection, $logLevel, $logOptions, $logFacility);
|
||||
|
||||
$this->content = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue