Expand description
Script log handler implementation for capturing and storing Rhai script logs.
This module provides the core functionality for capturing log events from Rhai scripts and storing them in memory for later retrieval. It implements a tracing layer that filters for script-specific log events and converts them into structured log entries.
Structs§
- Rhai
Context Guard - Resource Acquisition Is Initialization (RAII) guard for automatic Rhai context cleanup.
- Script
LogHandle - Handle for accessing and managing script logs captured during execution.
Statics§
- SCRIPT_
HANDLE - Global singleton instance of the script log handle.
Functions§
- get_
current_ rhai_ context - Retrieves the current Rhai execution context from the top of the stack.
- get_
script_ handle - Retrieves the global script log handle instance.
- pop_
current_ rhai_ context - Pops and returns the current Rhai execution context from the stack.
- push_
rhai_ context_ with_ guard - Pushes a new Rhai execution context onto the stack and returns a guard for automatic cleanup.