for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ForecastAutomation\Log\Business;
use Psr\Log\LoggerInterface;
use Throwable;
class Logger
{
/**
* @param LoggerInterface $logger
*/
public function __construct(private LoggerInterface $logger)
}
public function info(string $message, array $context): void
$this->logger->info(
$message,
[
'message' => $message,
'context' => $context,
]
);
public function error(string $message, Throwable $e = null): void
$this->logger->error(
'throwable' => $e,