WordPress at Your Fingertips
function is not described

WC_Log_Handler::format_entry() protected WC 1.0

Builds a log entry text from level, timestamp and message.

{} It's a method of the class: WC_Log_Handler{}

Hooks from the method

Return

String. Formatted log entry.

Usage

$result = WC_Log_Handler::format_entry( $timestamp, $level, $message, $context );
$timestamp(int) (required)
Log timestamp.
$level(string) (required)
emergency|alert|critical|error|warning|notice|info|debug.
$message(string) (required)
Log message.
$context(array) (required)
Additional information for log handlers.

Code of WC_Log_Handler::format_entry() WC 5.8.0

protected static function format_entry( $timestamp, $level, $message, $context ) {
	$time_string  = self::format_time( $timestamp );
	$level_string = strtoupper( $level );
	$entry        = "{$time_string} {$level_string} {$message}";

	return apply_filters(
		'woocommerce_format_log_entry',
		$entry,
		array(
			'timestamp' => $timestamp,
			'level'     => $level,
			'message'   => $message,
			'context'   => $context,
		)
	);
}