Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output to both stdout and file #130

Closed
sebastiantf opened this issue Sep 30, 2022 · 1 comment
Closed

Output to both stdout and file #130

sebastiantf opened this issue Sep 30, 2022 · 1 comment

Comments

@sebastiantf
Copy link

Would be really nice to have an option to print output both to stdout and file, instead of having to choose either one at a time

@cgewecke cgewecke mentioned this issue Feb 27, 2024
54 tasks
@cgewecke
Copy link
Owner

This is supported in the latest release (2.0). The following options combination outputs the report to file (without color) and to terminal (with color)

outputFile: "./myfile...",
forceTerminalOutput: true,
forceTerminalOutputFormat: "terminal"

https://github.com/cgewecke/hardhat-gas-reporter/releases/tag/v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants