Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

LogStore::write

Appends local text to a named stream in the current engine session. ARGUS supplies the node, session, timestamp, and sequence. Returns false when the bounded queue cannot accept the text. No event is created.

Declaration

bool write(std::string stream, std::string text, std::string channel = "stdout",
               std::string level = "info");

Parameters

NameDescription
streamSource name, such as Engine or DARTWIC BUILDER.
textText to append; a trailing newline is optional.
channelstdout or stderr.
levelinfo, warning, or error.

Returns

Whether the text was accepted for asynchronous writing.

Example

argus.logs().write("Flight Computer", "Telemetry link ready\n");