]> git.mxchange.org Git - friendica.git/blob - src/Util/Logger/StreamLogger.php
8d9ffec3873c4fe0126d5b038f1455bf254ef044
[friendica.git] / src / Util / Logger / StreamLogger.php
1 <?php
2
3 namespace Friendica\Util\Logger;
4
5 use Friendica\Util\Introspection;
6 use Friendica\Util\Profiler;
7
8 /**
9  * A Logger instance for logging into a stream (file, stdout, stderr)
10  */
11 class StreamLogger extends AbstractFriendicaLogger
12 {
13         /**
14          * The minimum loglevel at which this logger will be triggered
15          * @var string
16          */
17         private $logLevel;
18
19         public function __construct($channel, Introspection $introspection, Profiler $profiler, $level)
20         {
21                 parent::__construct($channel, $introspection, $profiler);
22                 $this->logLevel = $level;
23         }
24
25         /**
26          * Adds a new entry to the log
27          *
28          * @param int $level
29          * @param string $message
30          * @param array $context
31          *
32          * @return void
33          */
34         protected function addEntry($level, $message, $context = [])
35         {
36                 // TODO: Implement addEntry() method.
37         }
38 }