Spaces:
Running
Running
File size: 381 Bytes
3b7f713 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import datetime
def audit_log(component: str, action: str):
"""
Prosty logger zdarzeń na potrzeby zidentyfikowania przebiegów w LangGraph.
"""
timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
log_line = f"[{timestamp}] [{component}] {action}"
print(log_line)
# Docelowo tutaj poleci zapis do ElasticSearch / PostgreSQL Audit Table
|