Perfexionists / perun

Lightweight Performance Control System
GNU General Public License v3.0
16 stars 14 forks source link

Add logging to commands #214

Closed tfiedor closed 4 months ago

tfiedor commented 4 months ago

This PR adds to core comman following options:

  1. Adds --log option for logging output of commands to directory
  2. Adds --log-dir option for chaning the directory of logs.

By default, we save the logs to .perun/logs/DATE directory.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.91%. Comparing base (2dc34cf) to head (23119f6).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #214 +/- ## ======================================= Coverage 98.90% 98.91% ======================================= Files 144 144 Lines 9900 9932 +32 ======================================= + Hits 9792 9824 +32 Misses 108 108 ``` | [Flag](https://app.codecov.io/gh/Perfexionists/perun/pull/214/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists) | Coverage Δ | | |---|---|---| | [coverage-3.10](https://app.codecov.io/gh/Perfexionists/perun/pull/214/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists) | `98.90% <100.00%> (+<0.01%)` | :arrow_up: | | [coverage-3.11](https://app.codecov.io/gh/Perfexionists/perun/pull/214/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists) | `98.91% <100.00%> (+<0.01%)` | :arrow_up: | | [coverage-3.12](https://app.codecov.io/gh/Perfexionists/perun/pull/214/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists) | `98.90% <100.00%> (+<0.01%)` | :arrow_up: | | [coverage-3.9](https://app.codecov.io/gh/Perfexionists/perun/pull/214/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists) | `98.90% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Perfexionists#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.