Learn R Programming

pensar (version 0.4.2)

log_entry: Vault log

Description

Append-only operation log for a pensar vault. Append a log entry

Appends a structured entry to log.md with timestamp, operation type, and message.

Usage

log_entry(message, operation = "note", vault = default_vault())

Value

Invisible NULL.

Arguments

message

Description of what happened.

operation

Operation type (e.g., "init", "ingest", "lint").

vault

Path to the vault directory.

Examples

Run this code
v <- tempfile("vault-")
init_vault(v, rproj = FALSE, agent_instructions = FALSE)
log_entry("Reviewed wiki/seed.md", operation = "review", vault = v)
unlink(v, recursive = TRUE)

Run the code above in your browser using DataLab