How to debug logs on the ic network

Logs can be seen on local networks. How to read logs on IC networks

2 Likes

Or wait until the IC collects per canister logs in a way that’s accessible to canister admins. I wouldn’t be surprised if it’s somewhere on the roadmap, but a lot of things are.

1 Like

Does the IC collect canister logs yet? This would be very nice.

I would like to see all errors, panics, and ic_cdk::print logs. It’s been difficult to debug in production, I assume others find this difficult as well?

4 Likes

Wanted to follow up on whether Motoko Debug.print logs are collected and accessible on the IC main net. Would be very helpful.

I think you’d need to use something like canistergeek.

1 Like

It’s kinda shocking thats not available somehow

really need my --network ic canister logs please :grin:

Anything available by now to read logs of canisters in production?

Came across this while searching for method to view logs on --ic
you can just run
dfx canister logs <Canister_Name> --ic
and it should show the last few logs