topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
1.8k stars 121 forks source link

New option to create a logfile #779

Open Slm0n87 opened 3 months ago

Slm0n87 commented 3 months ago

I want to suggest some general feature

Topgrade should be able to write its output to a predefined or configurable logfile. So a user is able to comprehend which update was done at which time.

More information

I already tried to do this by shell tool tee, e.g.: topgrade | tee stuff/logs/topgade/$(date +"%Y-%m-%d_%H:%M:%S").log but then the output is not colored anymore.

SteveLauC commented 2 months ago

Yeah, I can imagine this could be useful in some cases.