cgewecke / eth-gas-reporter

Gas usage per unit test. Average gas usage per method. A mocha reporter.
MIT License
603 stars 94 forks source link

Allow user to print at console and file in the same time #281

Closed martincik closed 2 years ago

martincik commented 2 years ago

The goal of this PR is to allow developers to print table output to file and also console if needed. The console will be turned on by default and file storage only if outputFile is specified in the config.

Why? I want to generate each report for the day as a separate file that will allow me to see the changes over time and at the same time always prints the output on the console if I want to.

Thank you for considering this small change.

martincik commented 2 years ago

@cgewecke Changed to your suggested version.