WP_CLI\Loggers

Base::write()protectedWP-CLI 1.0

Write a string to a resource.

Method of the class: Base{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->write( $handle, $str );
$handle(resource) (required)
Commonly STDOUT or STDERR.
$str(string) (required)
Message to write.

Base::write() code WP-CLI 2.8.0-alpha

protected function write( $handle, $str ) {
	fwrite( $handle, $str );
}