audit#
- scikitplot.cleanprompt.audit(event, **fields)[source]#
Emit one structured audit event on
AUDIT_LOGGER_NAME.- Parameters:
- eventstr
What happened:
"encoded","decoded","blocked", …- **fields
Counts, kinds, formats, fingerprints and digests. Never a value.
- Parameters:
- Return type:
None
Notes
User notes. Audit events answer “what left this machine, under which plan?” without keeping what was removed. Send them where compliance wants them:
import logging logging.getLogger("scikitplot.cleanprompt.audit").addHandler(my_handler)
With
configure_logging(level="info", fmt="json")each event is one JSON line whose fields are the keywords given here.Developer notes. Emitted at
INFOthrough the ordinary logger, so it is off unless asked for and every scrubbing filter applies to it as well.