<?php

declare(strict_types=1);

namespace ForumPay\PaymentGateway\PHPClient\Logging;

trait LoggerTrait
{
    protected function logInfo(string $message, array $context = []): void
    {
        if ($this->logger !== null) {
            $this->logger->info($message, $context);
        }
    }

    protected function logError(string $message, array $context = []): void
    {
        if ($this->logger !== null) {
            $this->logger->error($message, $context);
        }
    }
}
