|
Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
|
A single log entry with full context. More...
#include <LogService.hpp>

Public Member Functions | |
| std::string | Format (bool include_context=true) const |
| Format for output: "[sim_time] [LEVEL] [entity.component] message". | |
| std::string | FormatColored (const Console &console) const |
| Format with colors (for terminal). | |
Static Public Member Functions | |
| static LogEntry | Create (LogLevel level, double sim_time, std::string_view message, const LogContext &ctx) |
| Create a log entry with current context. | |
Public Attributes | |
| LogLevel | level |
| Severity level. | |
| double | sim_time |
| Simulation time when logged. | |
| std::string | message |
| Log message. | |
| LogContext | context |
| Entity/component context. | |
| std::chrono::steady_clock::time_point | wall_time |
| Wall clock time for ordering logs from concurrent sources. | |
A single log entry with full context.
Immutable after creation. Collected into LogBuffer during hot loop.
|
inlinestatic |
Create a log entry with current context.
|
inlinenodiscard |
Format for output: "[sim_time] [LEVEL] [entity.component] message".
|
inlinenodiscard |
Format with colors (for terminal).
| LogContext icarus::LogEntry::context |
Entity/component context.
| std::string icarus::LogEntry::message |
Log message.
| double icarus::LogEntry::sim_time |
Simulation time when logged.
| std::chrono::steady_clock::time_point icarus::LogEntry::wall_time |
Wall clock time for ordering logs from concurrent sources.