Records a user action (approval, rejection, sign-off, deployment, export, etc.) as a tamper-evident, hash-chained entry in the audit log.
Arguments
- log
A
regulogobject fromregulog_init().- action
Character. What happened (e.g.
"approved","deployed","rejected","exported").- object
Character. What it happened to (filename, model ID, record ID, pipeline step, etc.).
- reason
Character. Mandatory. Why it happened. No default.
- user
Character. Override the session user for this entry. Defaults to the user set at
regulog_init().
Examples
log <- regulog_init(app = "my-app", user = "jsmith")
log_action(log,
action = "approved",
object = "model_v3",
reason = "Validation metrics passed agreed threshold"
)
#> regulog: logged action 'approved' on 'model_v3'
