3 namespace Friendica\Test\src\Util\Logger;
5 use Friendica\Util\Introspection;
6 use Friendica\Util\Logger\SyslogLogger;
10 * Wraps the SyslogLogger for replacing the syslog call with a string field.
12 class SyslogLoggerWrapper extends SyslogLogger
16 public function __construct($channel, Introspection $introspection, $level = LogLevel::NOTICE, $logOpts = LOG_PID, $logFacility = LOG_USER)
18 parent::__construct($channel, $introspection, $level, $logOpts, $logFacility);
24 * Gets the content from the wrapped Syslog
28 public function getContent()
30 return $this->content;
36 protected function syslogWrapper($level, $entry)
38 $this->content .= $entry . PHP_EOL;