Notes

AstrBot / Images / Logs

ImgFlow Audit Log Notes

A note on JSONL audit events, rotation, and field previews inside the image task plugin.

ImgFlow image tasks pass through command parsing, input image storage, executor calls, task state updates, and result delivery. The new audit logger writes key events to logs/imgflow_audit.jsonl; each line is standalone JSON with a timestamp, event name, and sanitized fields.

The implementation keeps three maintenance details in mind: field previews are length-limited, overly deep structures are replaced with placeholders, and files rotate after reaching the configured size. This keeps task tracing useful without letting logs grow without bounds or storing large image payloads and long prompts in full.