WC_REST_System_Status_V2_Controller::get_logging_infoprotectedWC 1.0

Get info about the logging system.

Method of the class: WC_REST_System_Status_V2_Controller{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_logging_info();

WC_REST_System_Status_V2_Controller::get_logging_info() code WC 10.3.6

protected function get_logging_info() {
	return array(
		'logging_enabled'       => LoggingUtil::logging_is_enabled(),
		'default_handler'       => LoggingUtil::get_default_handler(),
		'retention_period_days' => LoggingUtil::get_retention_period(),
		'level_threshold'       => WC_Log_Levels::get_level_label( strtolower( LoggingUtil::get_level_threshold() ) ),
		'log_directory_size'    => size_format( LoggingUtil::get_log_directory_size() ),
	);
}