mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:50:15 +00:00
cleanup sysloglogger
This commit is contained in:
parent
25b6db6aca
commit
22f1983cc0
5 changed files with 56 additions and 44 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue