diff --git a/includes/log-handlers/class-wc-log-handler-file.php b/includes/log-handlers/class-wc-log-handler-file.php index 4e376ce5dc1..55b3edbdd15 100644 --- a/includes/log-handlers/class-wc-log-handler-file.php +++ b/includes/log-handlers/class-wc-log-handler-file.php @@ -93,8 +93,8 @@ class WC_Log_Handler_File extends WC_Log_Handler { $handle = 'log'; } $message = apply_filters( 'woocommerce_logger_add_message', $message, $handle ); - $time = date_i18n( 'm-d-Y @ H:i:s -' ); - $entry = "{$time} {$message}"; + $time = date_i18n( 'm-d-Y @ H:i:s' ); + $entry = "{$time} - {$message}"; } else { $entry = parent::format_entry( $level, $timestamp, $message, $context ); }