Skip to main content

log Namespace

Logging system with self-registering output sinks. More...

Definition

namespace helios::util::log { ... }

Classes Index

classConsoleSink

LogSink implementation that writes to standard output. More...

classLogger

Logger implementation with configurable output sinks. More...

classLogManager

LogManager for managing scoped Loggers and global sink configuration. More...

classhelios::util::log::LogSink

Typedefs Index

usingSinkTypeId = const char *

Unique identifier type for log sinks. More...

Enumerations Index

enum classLogLevel { ... }

Severity level for log messages. More...

Description

Logging system with self-registering output sinks.

Sinks define their own type identifiers and register with the LogManager. Enable/disable is done by string identifier, allowing extensibility without modifying core logging code.

Typedefs

SinkTypeId

using helios::util::log::SinkTypeId = const char*

Unique identifier type for log sinks.

Each sink implementation defines its own static identifier string. The LogManager uses these identifiers to enable/disable specific sinks.

```cpp // In sink implementation: static constexpr const char* TYPE_ID = "console"; [[nodiscard]] const char* typeId() const noexcept override { return TYPE_ID; }

// Usage: LogManager::getInstance().enableSink("console"); LogManager::getInstance().disableSink("imgui"); ```

Definition at line 39 of file LogSink.ixx.

39 using SinkTypeId = const char*;

Enumerations

LogLevel

enum class helios::util::log::LogLevel
strong

Severity level for log messages.

Enumeration values
Debug
Info
Warn
Error

Definition at line 16 of file LogSink.ixx.

16 enum class LogLevel {
21 };

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.