Class LogSource
Defined in File log_source.hpp
Inheritance Relationships
Derived Type
public ros2_medkit_gateway::ros2::Ros2LogSource(Class Ros2LogSource)
Class Documentation
-
class LogSource
Port: source of /rosout-like log entries. The adapter (
Ros2LogSource) subscribes to /rosout and delivers each message as a neutral LogEntry, normalising logger name (no leading slash) and SOVD severity. Manager keeps the ring-buffer storage; the source merely produces entries.Naming note: this port is named
LogSourcerather thanLogTransport(which would match the rest ofcore/transports/) because it is a one-way event emitter - the manager subscribes via a callback rather than driving requests through a bidirectional channel. The asymmetry is intentional; renaming toLogTransportwas considered and rejected to preserve the “passive source” semantics the rcl_interfaces/Log subscription captures.Subclassed by ros2_medkit_gateway::ros2::Ros2LogSource
Public Functions
-
LogSource() = default
-
virtual ~LogSource() = default
-
virtual void start(EntryCallback callback) = 0
Start delivering entries. Idempotent. Calling start() twice replaces the previous callback.
-
LogSource() = default