wc_get_log_file_path()WC 2.2

Deprecated from version 8.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Get a log file path.

No Hooks.

Return

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() code WC 8.6.1

function wc_get_log_file_path( $handle ) {
	wc_deprecated_function( 'wc_get_log_file_path', '8.6.0' );

	$directory = trailingslashit( realpath( Constants::get_constant( 'WC_LOG_DIR' ) ) );
	$file_id   = LoggingUtil::generate_log_file_id( $handle, null, time() );
	$hash      = LoggingUtil::generate_log_file_hash( $file_id );

	return "{$directory}{$file_id}-{$hash}.log";
}