How to get ganache log when using test environment?

As topics, I’m wondering how to get ganache log when using the test environment?

2 Likes

Hi @Ankarrr,

I don’t think you can access the ganache log from OpenZeppelin Test Environment as it is spun up internally.

2 Likes

Hi @Ankarrr,

Just to confirm, it is not possible right now with OpenZeppelin Test Environment. The ganache-cli logger option isn’t supported. (https://github.com/trufflesuite/ganache-cli)

1 Like

Thank you for the response!

I’m wondering then how can I get the event log when using Test Environment?

1 Like

Hi @Ankarrr,

If you want to verify events are emitted you can use OpenZeppelin Test Helpers
https://docs.openzeppelin.com/test-helpers/0.5/