cleanup sysloglogger

This commit is contained in:
Philipp Holzer 2019-02-28 09:48:55 +01:00
parent 57bfc75a0c
commit 8f7fc9db60
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 69 additions and 46 deletions

View file

@ -6,13 +6,20 @@ use Friendica\Util\Introspection;
use Friendica\Util\Profiler;
/**
* A Logger instance for logging into a stream
* A Logger instance for logging into a stream (file, stdout, stderr)
*/
class StreamLogger extends AbstractFriendicaLogger
{
public function __construct($channel, Introspection $introspection, Profiler $profiler)
/**
* The minimum loglevel at which this logger will be triggered
* @var string
*/
private $logLevel;
public function __construct($channel, Introspection $introspection, Profiler $profiler, $level)
{
parent::__construct($channel, $introspection, $profiler);
$this->logLevel = $level;
}
/**