SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > query-monitor > output > > raw >


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/query-monitor/output//raw/

NameTypeSizeLast ModifiedActions
cache.php File 1316 bytes July 17 2025 21:05:45.
conditionals.php File 974 bytes July 17 2025 21:05:45.
db_queries.php File 2721 bytes July 17 2025 21:05:45.
http.php File 1633 bytes July 17 2025 21:05:45.
logger.php File 1365 bytes July 17 2025 21:05:45.
transients.php File 1524 bytes July 17 2025 21:05:45.

Reading File: /home/transcarter/public_html/wp-content/plugins/query-monitor/output//raw//logger.php

<?php declare(strict_types = 1);
/**
 * Raw logger output.
 *
 * @package query-monitor
 */

class QM_Output_Raw_Logger extends QM_Output_Raw {

	/**
	 * Collector instance.
	 *
	 * @var QM_Collector_Logger Collector.
	 */
	protected $collector;

	/**
	 * @return string
	 */
	public function name() {
		return __( 'Logs', 'query-monitor' );
	}

	/**
	 * @return array<string, array<int, array<string, mixed>>>
	 * @phpstan-return array<QM_Collector_Logger::*, list<array{
	 *   message: string,
	 *   stack: list<string>,
	 * }>>
	 */
	public function get_output() {
		$output = array();
		/** @var QM_Data_Logger $data */
		$data = $this->collector->get_data();

		if ( empty( $data->logs ) ) {
			return $output;
		}

		foreach ( $data->logs as $log ) {
			$output[ $log['level'] ][] = array(
				'message' => $log['message'],
				'stack' => array_column( $log['filtered_trace'], 'display' ),
			);
		}

		return $output;
	}
}

/**
 * @param array<string, QM_Output> $output
 * @param QM_Collectors $collectors
 * @return array<string, QM_Output>
 */
function register_qm_output_raw_logger( array $output, QM_Collectors $collectors ) {
	$collector = QM_Collectors::get( 'logger' );
	if ( $collector ) {
		$output['logger'] = new QM_Output_Raw_Logger( $collector );
	}
	return $output;
}

add_filter( 'qm/outputter/raw', 'register_qm_output_raw_logger', 30, 2 );

SILENT KILLER Tool