Expand description
File to handle logging audit events
This module provides functionality to log audit events into the database. It includes caching mechanisms for log types and action types to optimize performance and reduce database queries.
log_audit_event is the only required public function here that is importable to other files.
Structsยง
- Type
Record ๐
Staticsยง
- ACTION_
TYPE_ ๐CACHE - LOG_
TYPE_ ๐CACHE
Functionsยง
- get_
cached_ ๐action_ type - Retrieves the cached action type ID for a given log name, or creates it if it doesnโt exist.
- get_
cached_ ๐log_ type - Retrieves the cached log type ID for a given log name, or creates it if it doesnโt exist.
- get_
or_ ๐create_ type - Retrieves or creates a type record in the specified table based on the given name.
- log_
audit_ event - Logs an audit event.