|
Entropic 2.3.8
Local-first agentic inference engine
|
C API facade for audit log operations. More...
#include "engine_handle.h"#include <entropic/entropic.h>#include <entropic/mcp/utf8_sanitize.h>#include <entropic/types/logging.h>#include "json_serializers.h"#include <fstream>#include <string>
Go to the source code of this file.
Functions | |
| ENTROPIC_EXPORT entropic_error_t | entropic_audit_flush (entropic_handle_t handle) |
| Flush the audit logger to disk. | |
| ENTROPIC_EXPORT entropic_error_t | entropic_audit_count (entropic_handle_t handle, size_t *count) |
| Get the number of audit log entries this session. | |
| ENTROPIC_EXPORT entropic_error_t | entropic_audit_read (entropic_handle_t handle, const char *path, const char *, char **result_json) |
| Read audit log entries from a JSONL file. | |
Variables | |
| static auto | logger = entropic::log::get("facade.audit") |
C API facade for audit log operations.
Stubs for v1.9.5. Real implementations require engine wiring (Phase 8, deferred). Validates inputs and returns appropriate errors until the facade has a live AuditLogger.
Definition in file entropic_audit.cpp.
| ENTROPIC_EXPORT entropic_error_t entropic_audit_count | ( | entropic_handle_t | handle, |
| size_t * | count | ||
| ) |
Get the number of audit log entries this session.
Get the number of audit log entries recorded this session.
Definition at line 47 of file entropic_audit.cpp.
| ENTROPIC_EXPORT entropic_error_t entropic_audit_flush | ( | entropic_handle_t | handle | ) |
Flush the audit logger to disk.
Flush the audit logger to disk immediately.
Definition at line 32 of file entropic_audit.cpp.
| ENTROPIC_EXPORT entropic_error_t entropic_audit_read | ( | entropic_handle_t | handle, |
| const char * | path, | ||
| const char * | filter_json, | ||
| char ** | result_json | ||
| ) |
Read audit log entries from a JSONL file.
| path | Filesystem path to the JSONL audit log file. |
| result_json | Out-param: newly allocated JSON string (caller owns; free with entropic_free). |
Definition at line 67 of file entropic_audit.cpp.
|
static |
Definition at line 22 of file entropic_audit.cpp.