forge-std icon indicating copy to clipboard operation
forge-std copied to clipboard

feat: add a log helper library to easily log entire structs directly

Open DrakeEvans opened this issue 1 year ago • 1 comments

This is meant to be a placeholder draft PR to discuss a file which allows the logging of the entire struct.

This adds a log(name: String) function to all the structs defined in forge-std so that they can easily be logged to the console during testing.

by adding using forgeStdLogHelper for *; to a test file, any struct returned by a forge-std file can be logged to the console by calling someStruct.log("someStruct");

DrakeEvans avatar Aug 23 '23 18:08 DrakeEvans