Beispiel #1
0
 def log_to_file(self, log_filename):
     fd = plash_core.wrap_fd(
         os.open(log_filename, os.O_WRONLY | os.O_CREAT | os.O_TRUNC))
     self.proc.logger = ns.make_log_from_fd(fd)
Beispiel #2
0
 def enable_logging(self, args):
     fd = plash_core.wrap_fd(os.dup(2))
     self.proc.logger = ns.make_log_from_fd(fd)