<?php

namespace PloverCRM\Core\Services;

use PloverCRM\Common\BaseLogger;

/**
 * General System Logger Service
 * 
 * Handles logging for core system operations
 */
class Logger extends BaseLogger
{
    /**
     * Constructor
     */
    public function __construct()
    {
        parent::__construct(
            'system',      // Channel name
            'system',      // Log directory name
            'system',      // Log file prefix
            [
                'module' => 'system',
                'feature' => 'system',
                'persist' => false,
            ]
        );
    }

    /**
     * Log error message
     *
     * @param string $message
     * @param array $context
     */
    public function logError($message, array $context = []): void
    {
        parent::logError($message, $context);
    }

    /**
     * Log info message
     *
     * @param string $message
     * @param array $context
     */
    public function logInfo($message, array $context = []): void
    {
        parent::logInfo($message, $context);
    }

    /**
     * Log warning message
     *
     * @param string $message
     * @param array $context
     */
    public function logWarning($message, array $context = []): void
    {
        parent::logWarning($message, $context);
    }
}
