rtc2git icon indicating copy to clipboard operation
rtc2git copied to clipboard

Log everything to a file

Open jacobilsoe opened this issue 10 years ago • 4 comments

It would be nice if everything was logged to a file - not only the accept messages.

jacobilsoe avatar Sep 17 '15 07:09 jacobilsoe

Yeah I think thats a good idea. I struggled a few times when I lost some logs.... I think its possible by extending shell#execute.

WtfJoke avatar Sep 17 '15 14:09 WtfJoke

Its not as easy as it seems. If a file is provided I need to log to two files (the normal log file and the provided one)... Not sure if I can accomplish this. It might be possible to work out with some kind of decorator pattern.

WtfJoke avatar Oct 21 '15 09:10 WtfJoke

what about python3 migration.py > migration.log 2>&1 and then tail -f migration.log

ohumbel avatar Oct 21 '15 09:10 ohumbel

True on linux. Im not sure if there is a similar solution for windows. It might be possible on windows with python migration.py > migration.log and an editor of your choice which supports autoreloading...

WtfJoke avatar Oct 21 '15 15:10 WtfJoke