403Webshell
Server IP : 185.143.233.238  /  Your IP : 185.215.232.195
Web Server : LiteSpeed
System : Linux saman.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : behrakir ( 1361)
PHP Version : 8.1.34
Disable Function : symlink,shell_exec,show_source,exec,popen,system,passthru,proc_open,proc_close,pcntl_exec,mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/behrakir/khanomam.com/wp-content/plugins/sync-basalam/includes/Logger/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/behrakir/khanomam.com/wp-content/plugins/sync-basalam/includes/Logger/Logger.php
<?php

namespace SyncBasalam\Logger;

defined('ABSPATH') || exit;

class Logger
{
    private static $instance = [];
    private $logger;

    private function __construct($channel)
    {
        if ($channel == "woo" && class_exists('WC_Logger')) {
            $this->logger = new WooLogger();
        }
    }

    public static function getInstance($channel = "woo")
    {
        if (!isset(self::$instance[$channel])) {
            self::$instance[$channel] = new self($channel);
        }

        return self::$instance[$channel];
    }

    public static function channel($channel)
    {
        return self::getInstance($channel)->logger;
    }

    public static function log($level, $message, $context = [])
    {
        self::getInstance()->logger->log($level, $message, $context);
    }

    public static function info($message, $context = [])
    {
        self::getInstance()->logger->info($message, $context);
    }

    public static function debug($message, $context = [])
    {
        self::getInstance()->logger->debug($message, $context);
    }

    public static function warning($message, $context = [])
    {
        self::getInstance()->logger->warning($message, $context);
    }

    public static function error($message, $context = [])
    {
        self::getInstance()->logger->error($message, $context);
    }

    public static function alert($message, $context = [])
    {
        self::getInstance()->logger->alert($message, $context);
    }

    public static function getLogs()
    {
        return self::getInstance()->logger->getLogs();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit