|
Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
|
Thread-local log context manager. More...
#include <LogService.hpp>
Classes | |
| class | ScopedContext |
| RAII guard for automatic context management. More... | |
Static Public Member Functions | |
| static void | SetContext (const LogContext &ctx) |
| Set context for current thread (called by Simulator before Step). | |
| static void | ClearContext () |
| Clear context (called by Simulator after Step). | |
| static const LogContext & | GetContext () |
| Get current context (called internally by LogBuffer::Log). | |
Thread-local log context manager.
The Simulator sets this before calling component methods. Components can query GetCurrentContext() implicitly.
|
inlinestatic |
Clear context (called by Simulator after Step).
|
inlinestaticnodiscard |
Get current context (called internally by LogBuffer::Log).
|
inlinestatic |
Set context for current thread (called by Simulator before Step).