HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-rss-aggregator/v4/src/Logger/ProblemLogger.php
<?php

namespace RebelCode\Wpra\Core\Logger;

use Psr\Log\NullLogger;

/**
 * A special null logger that is used when an error occurs and the original logger cannot be used.
 *
 * @since 4.15
 */
class ProblemLogger extends NullLogger implements LogReaderInterface, ClearableLoggerInterface
{
    /**
     * The error.
     *
     * @since 4.15
     *
     * @var string
     */
    public $error;

    /**
     * Constructor.
     *
     * @since 4.15
     *
     * @param string $error The error.
     */
    public function __construct($error)
    {
        $this->error = $error;
    }

    /**
     * @inheritdoc
     *
     * @since 4.15
     */
    public function clearLogs()
    {
    }

    /**
     * @inheritdoc
     *
     * @since 4.15
     */
    public function getLogs($num = null, $page = 1)
    {
        return [];
    }
}