failed: "; a Throwable is logged with its trace. */ public static function failure(string $context, Throwable|string $detail): void { self::line(sprintf('%s failed: %s', $context, (string) $detail)); } /** Logs one free-form line with the plugin prefix. */ public static function line(string $message): void { error_log(self::PREFIX . $message); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log } }