TracyLogger::notice()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\User\Common\Logger;
6
7
use Tracy\ILogger;
8
use Tracy\Debugger;
9
use Nette\SmartObject;
10
11
final class TracyLogger implements LoggerInterface
12
{
13
	use SmartObject;
14
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	public function error(string $message): void
19
	{
20
		Debugger::log($message, ILogger::ERROR);
21
	}
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public function notice(string $message): void
27
	{
28
		Debugger::log($message, ILogger::WARNING);
29
	}
30
31
	/**
32
	 * {@inheritdoc}
33
	 */
34
	public function info(string $message): void
35
	{
36
		Debugger::log($message, ILogger::INFO);
37
	}
38
}
39