
Nov. 26, 2021
11 a.m.
i wonder whether: from myutils import myprint as print or _print = print print = myprint is really the pythonic way? my use case for multiple files on top of the stdout, is when using e.g. wandb which is a popular ML dashboard and experiment logging platform. i want to write my log file both the a local log.txt and to a second copy in the temporary local wandb folder that later gets synced to the cloud. otherwise i have to take care of copying over the file later including in cases of exceptions. more generally: writing a log to both a local and a remote location. thanks eyal