<?php

namespace PloverCRM\Core\Services;

use PloverCRM\Common\BaseLogger;

/**
 * CRM settings activity logger.
 */
class CrmSettingsLogger extends BaseLogger
{
    public function __construct()
    {
        parent::__construct(
            'crm_settings',
            'crm-settings',
            'crm-settings',
            [
                'module' => 'crm',
                'feature' => 'crm-settings',
            ]
        );
    }

    public function info(string $message, array $context = []): void
    {
        $this->logInfo($message, $context);
    }

    public function warning(string $message, array $context = []): void
    {
        $this->logWarning($message, $context);
    }

    public function error(string $message, array $context = []): void
    {
        $this->logError($message, $context);
    }
}
