Spaces:
Running
Running
| 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 | |