SILENT KILLERPanel

Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > image-optimization > classes


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//cuddlebuds.lk/wp-content/plugins/image-optimization/classes

NameTypeSizeLast ModifiedActions
async-operation Directory - -
client Directory - -
exceptions Directory - -
file-system Directory - -
image Directory - -
migration Directory - -
rest Directory - -
basic-enum.php File 699 bytes February 06 2024 19:05:42.
error_log File 250 bytes June 22 2025 18:29:39.
file-utils.php File 2592 bytes February 06 2024 19:05:42.
locale.php File 577 bytes February 06 2024 19:05:42.
logger.php File 877 bytes February 06 2024 19:05:42.
module-base.php File 7270 bytes March 05 2024 17:32:40.
route.php File 11330 bytes February 06 2024 19:05:42.
utils.php File 3207 bytes October 01 2024 15:04:24.

Reading File: /home/codekrsu//cuddlebuds.lk/wp-content/plugins/image-optimization/classes/logger.php

<?php

namespace ImageOptimization\Classes;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Logger {
	public const LEVEL_ERROR = 'error';
	public const LEVEL_WARN = 'warn';
	public const LEVEL_INFO = 'info';

	public static function log( string $log_level, $message ): void {
		$backtrace = debug_backtrace(); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace

		$class = $backtrace[1]['class'] ?? null;
		$type = $backtrace[1]['type'] ?? null;
		$function = $backtrace[1]['function'];

		if ( $class ) {
			$message = '[Image Optimizer]: ' . $log_level . ' in ' . "$class$type$function()" . ': ' . $message;
		} else {
			$message = '[Image Optimizer]: ' . $log_level . ' in ' . "$function()" . ': ' . $message;
		}

		error_log( $message ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
	}
}

SILENT KILLER Tool