1: <?php declare(strict_types=1);
2:
3: namespace Salient\Console\Target;
4:
5: use Analog\Analog;
6: use Salient\Console\Concept\ConsoleTarget;
7:
8: /**
9: * Writes console output to Analog
10: */
11: final class AnalogTarget extends ConsoleTarget
12: {
13: /**
14: * @inheritDoc
15: */
16: public function write($level, string $message, array $context = []): void
17: {
18: Analog::log($message, $level);
19: }
20: }
21: