Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd
/
wp-content
/
plugins
/
elementor
/
modules
/
wp-cli
/
File Content:
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 ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
cli-logger.php
599 bytes
0644
command.php
4704 bytes
0644
library.php
6972 bytes
0644
module.php
1322 bytes
0644
update.php
2605 bytes
0644
N4ST4R_ID | Naxtarrr