1<?php
2
3namespace splitbrain\phpcli;
4
5use Psr\Log\LoggerInterface;
6use Psr\Log\LoggerTrait;
7
8/**
9 * Class PSR3CLI
10 *
11 * This class can be used instead of the CLI class when a class implementing
12 * PSR3 version 3 is needed.
13 *
14 * @see PSR3CLI for a version 2 compatible class
15 */
16abstract class PSR3CLIv3 extends Base implements LoggerInterface
17{
18    use LoggerTrait;
19
20    public function log($level, string|\Stringable $message, array $context = []): void
21    {
22        $this->logMessage($level, $message, $context);
23    }
24}
25