Automattic\WooCommerce\Utilities
LoggingUtil::get_log_directory()
Get the directory for storing log files.
Method of the class: LoggingUtil{}
No Hooks.
Return
String
. The full directory path, with trailing slash.
Usage
$result = LoggingUtil::get_log_directory( $create_dir ): string;
- $create_dir(true|false)
- True to attempt to create the log directory if it doesn't exist.
Default: true
LoggingUtil::get_log_directory() LoggingUtil::get log directory code WC 9.4.2
public static function get_log_directory( bool $create_dir = true ): string { return Settings::get_log_directory( $create_dir ); }