junobuild_satellite

Function log_with_data

Source
pub fn log_with_data<T: Serialize>(
    message: String,
    data: &T,
) -> Result<(), String>
Expand description

Logs a message at the Info level with additional serialized data.

§Arguments

  • message - The message to be logged.
  • data - A reference to the data to be logged. The data must implement the Serialize trait.

§Returns

A result indicating success or containing an error message.