audit_log
audit_log
¶
Tail audit.jsonl and emit events for shield lifecycle changes.
Watches for new JSON-lines entries written by
:class:~terok_shield.lib.audit.AuditLogger and surfaces them as
:class:WatchEvent instances with source="audit".
AuditLogWatcher(audit_path, container)
¶
Tail audit.jsonl and yield events for shield lifecycle changes.
Open audit_path and seek to end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
audit_path
|
Path
|
Path to the per-container |
required |
container
|
str
|
Container name (for event metadata). |
required |
Source code in src/terok_shield/lib/watchers/audit_log.py
fileno()
¶
close()
¶
poll()
¶
Read new audit lines and return watch events.