PHP 8.2.31
Preview: cli-logger.php Size: 599 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/wp-cli/cli-logger.php

<?php
namespace Elementor\Modules\WpCli;

use Elementor\Core\Logger\Loggers\Db;
use Elementor\Core\Logger\Items\Log_Item_Interface;

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

class Cli_Logger extends Db {

	public function save_log( Log_Item_Interface $item ) {
		$message = $item->format( 'raw' );
		switch ( $item->type ) {
			case self::LEVEL_WARNING:
				\WP_CLI::warning( $message );
				break;
			case self::LEVEL_ERROR:
				\WP_CLI::error( $message, false );
				break;
			default:
				\WP_CLI::log( $message );
				break;
		}

		parent::save_log( $item );
	}
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
599 B lrw-r--r-- 2025-03-17 17:28:54
Edit Download
4.59 KB lrw-r--r-- 2025-03-17 17:28:54
Edit Download
6.81 KB lrw-r--r-- 2025-03-17 17:28:54
Edit Download
1.29 KB lrw-r--r-- 2025-03-17 17:28:54
Edit Download
2.54 KB lrw-r--r-- 2025-03-17 17:28:54
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).