|
Entropic 2.3.8
Local-first agentic inference engine
|
gh#59 (v2.3.1): RAII guard — sets thread's current handle_id. More...
#include <entropic/types/logging.h>
Public Member Functions | |
| HandleLogScope (int handle_id) | |
| Enter scope; sets thread current handle_id. | |
| ~HandleLogScope () | |
| Exit scope; restores previous handle_id. | |
| HandleLogScope (const HandleLogScope &)=delete | |
| HandleLogScope & | operator= (const HandleLogScope &)=delete |
gh#59 (v2.3.1): RAII guard — sets thread's current handle_id.
Construct at the top of every entropic_* API function so that any log line emitted on this thread (directly or via subsystems called from this thread) routes to this handle's session.log via the HandleAwareSink. Nestable — saves/restores the previous id.
Cross-thread: when spawning a background thread that should log on a handle's behalf (external_bridge serve threads), wrap the thread body in another HandleLogScope.
|
explicit |
Enter scope; sets thread current handle_id.
gh#59 RAII enter — see header.
| handle_id | The id to bind for this thread. |
@utility
Definition at line 549 of file logging.cpp.
| entropic::log::HandleLogScope::~HandleLogScope | ( | ) |
Exit scope; restores previous handle_id.
gh#59 RAII exit — see header.
@utility
Definition at line 559 of file logging.cpp.