friendica/src/Util/Logger/StreamLogger.php

39 lines
791 B
PHP
Raw Normal View History

<?php
namespace Friendica\Util\Logger;
use Friendica\Util\Introspection;
2019-02-28 09:41:31 +01:00
use Friendica\Util\Profiler;
/**
2019-02-28 09:48:55 +01:00
* A Logger instance for logging into a stream (file, stdout, stderr)
*/
2019-02-28 09:41:31 +01:00
class StreamLogger extends AbstractFriendicaLogger
{
2019-02-28 09:48:55 +01:00
/**
* The minimum loglevel at which this logger will be triggered
* @var string
*/
private $logLevel;
public function __construct($channel, Introspection $introspection, Profiler $profiler, $level)
{
2019-02-28 09:41:31 +01:00
parent::__construct($channel, $introspection, $profiler);
2019-02-28 09:48:55 +01:00
$this->logLevel = $level;
}
/**
2019-02-28 09:41:31 +01:00
* Adds a new entry to the log
*
2019-02-28 09:41:31 +01:00
* @param int $level
* @param string $message
2019-02-28 09:41:31 +01:00
* @param array $context
*
2019-02-28 09:41:31 +01:00
* @return void
*/
2019-02-28 09:41:31 +01:00
protected function addEntry($level, $message, $context = [])
{
2019-02-28 09:41:31 +01:00
// TODO: Implement addEntry() method.
}
}