wc_get_log_file_path()
Deprecated since 8.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get a log file path.
No Hooks.
Returns
String. the log file path.
Usage
wc_get_log_file_path( $handle );
- $handle(string) (required)
- name.
Changelog
| Since 2.2 | Introduced. |
| Deprecated since | 8.6.0 |
wc_get_log_file_path() wc get log file path code WC 10.6.2
function wc_get_log_file_path( $handle ) {
wc_deprecated_function( 'wc_get_log_file_path', '8.6.0' );
$directory = LoggingUtil::get_log_directory();
$file_id = LoggingUtil::generate_log_file_id( $handle, null, time() );
$hash = LoggingUtil::generate_log_file_hash( $file_id );
return "{$directory}{$file_id}-{$hash}.log";
}