Skip to content

Commit 23bfd74

Browse files
authored
Create audit.py
1 parent ab3ce43 commit 23bfd74

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/audit.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import logging
2+
3+
class Audit:
4+
def __init__(self):
5+
logging.basicConfig(filename='audit.log', level=logging.INFO)
6+
7+
def log_transaction(self, transaction_id, details):
8+
logging.info(f"Transaction ID: {transaction_id}, Details: {details}")
9+
10+
def log_governance_action(self, action, details):
11+
logging.info(f"Governance Action: {action}, Details: {details}")

0 commit comments

Comments
 (0)