Nicolas Steinmetz <nsteinm...@gmail.com> writes: > > My other concern is that I would like that all actions are written to a > log > > file so that I can audit if a deployment went well or not. > > Your assumption that output currently only goes to stdout/stderr, is > correct -- however, there are plans to change this. See > http://code.fabfile.org/issues/show/57 :) As a workaround you could replace stdout/stderr:
class Tee: def __init__(self, *files): self.files = files def write(self, *args, **kwargs): for f in self.files: f.write(*args, **kwargs) Example: sys.stdout = Tee(sys.__stdout__, open('out.log', 'w')) -- Akira. _______________________________________________ Fab-user mailing list Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user