WC_Log_Handler_File::cache_log
Cache log to write later.
Method of the class: WC_Log_Handler_File{}
No Hooks.
Returns
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() WC Log Handler File::cache log code WC 10.5.0
protected function cache_log( $entry, $handle ) {
$this->cached_logs[] = array(
'entry' => $entry,
'handle' => $handle,
);
}