Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
Loading...
Searching...
No Matches
icarus::LogContext Struct Reference

Immutable log context - set by component/entity during execution. More...

#include <LogService.hpp>

Public Member Functions

std::string FullPath () const
 Full path: "entity.component" or just "component" if no entity.
bool IsSet () const
 Check if context is set.

Public Attributes

std::string entity
 Entity name (e.g., "falcon9_1").
std::string component
 Component name (e.g., "merlinEngine2").
std::string type
 Component type (e.g., "LiquidEngine").

Detailed Description

Immutable log context - set by component/entity during execution.

The LogContext is thread-local and automatically captures the current entity and component name. Components don't need to pass context explicitly.

Member Function Documentation

◆ FullPath()

std::string icarus::LogContext::FullPath ( ) const
inlinenodiscard

Full path: "entity.component" or just "component" if no entity.

◆ IsSet()

bool icarus::LogContext::IsSet ( ) const
inlinenodiscard

Check if context is set.

Member Data Documentation

◆ component

std::string icarus::LogContext::component

Component name (e.g., "merlinEngine2").

◆ entity

std::string icarus::LogContext::entity

Entity name (e.g., "falcon9_1").

◆ type

std::string icarus::LogContext::type

Component type (e.g., "LiquidEngine").


The documentation for this struct was generated from the following file: