Function Logs in Pocket IC (Rollback Testing)

How can I configure PocketIC to capture and display the logs (e.g., println!, ic_cdk::println!, or log! statements) from a function when it executes within a test case? I want to ensure that when a function runs in PocketIC, its logs appear in the test output, helping to debug or showcase rollbacks testing effectively.

For clarification: Pocket IC is running fine with other stuff so there is nothing basic to be included.

Are there any dependencies, configurations, or Cargo.toml additions required to achieve this?

You can retrieve canister logs using the function fetch_canister_logs. In any case, canister logs (e.g., ic_cdk::print) also appear in the PocketIC server output. Using println! in canister code is a no-op.