2017-12-16 18:59:33 +01:00
|
|
|
# pyruse is intended as a replacement to both fail2ban and epylog
|
|
|
|
# Copyright © 2017 Y. Gablin
|
|
|
|
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
2017-12-15 19:36:50 +01:00
|
|
|
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")
|