WP_CLI::set_logger()public staticWP-CLI 1.0

Set the logger instance.

Method of the class: WP_CLI{}

No Hooks.

Return

null. Nothing.

Usage

$result = WP_CLI::set_logger( $logger );
$logger(object) (required)
Logger instance to set.

WP_CLI::set_logger() code WP-CLI 2.7.0-alpha

public static function set_logger( $logger ) {
	self::$logger = $logger;
}