mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
cleanup sysloglogger
This commit is contained in:
parent
57bfc75a0c
commit
8f7fc9db60
5 changed files with 69 additions and 46 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