Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::format_message()
Format a message for logging.
Метод класса: BlockTemplateLogger{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->format_message( $message, $info ): string;
- $message(строка) (обязательный)
- Message to log.
- $info(массив)
- Additional info to log.
По умолчанию: array()
Код BlockTemplateLogger::format_message() BlockTemplateLogger::format message WC 9.7.1
private function format_message( string $message, array $info = array() ): string { $formatted_message = sprintf( "%s\n%s", $message, // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r print_r( $this->format_info( $info ), true ), ); return $formatted_message; }