pyruse/tests/pyruse/actions/action_testLog.py

12 lines
326 B
Python

from pyruse.actions import action_dailyReport
class Action(action_dailyReport.Action):
def __init__(self, args):
super().__init__(args)
self.filename = args["outFile"]
def act(self, entry):
super().act(entry)
with open(self.filename, "a") as f:
f.write(str(entry) + "\n")