Running forge test -vv does not show the logs, but only test passed. Only forge test -vvvv `shows the traces, which shows the logs.

pragma solidity 0.8.20;

contract Testing is Test {
   function testLog(uint256 amount) public {
        console.log("not working", amount);
        emit log("not working too");

1 Answer 1


Foundry takes that function to fuzz thus logs will not be emitted. To fix this, remove the parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.