WC_Log_Handler_File::cache_log()protectedWC 1.0

Cache log to write later.

Method of the class: WC_Log_Handler_File{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->cache_log( $entry, $handle );
$entry(string) (required)
Log entry text.
$handle(string) (required)
Log entry handle.

WC_Log_Handler_File::cache_log() code WC 8.6.1

protected function cache_log( $entry, $handle ) {
	$this->cached_logs[] = array(
		'entry'  => $entry,
		'handle' => $handle,
	);
}