A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::syntax::LogTail Struct Reference

What a log or logf was written with, wherever it was written. More...

#include <cpp/a11/flow/syntax.h>

Public Attributes

Word level
 The level as written, or empty for the default.
 
std::string format
 logf's format, with escapes resolved. Empty for a log.
 
bool has_format = false
 Whether a format was written at all, which tells logf "" from log.
 
std::vector< NodePtr > arguments
 What to log, or what fills the format. it is bound inside a stage.
 

Detailed Description

What a log or logf was written with, wherever it was written.

One struct for the statement and the stage because they take the same thing: log warning it.error reads the same at the top of an if and after a |, and one shape is what keeps them from drifting into two dialects. format is empty for a log and holds the format for a logf; arguments is what fills it, and for a log holds at most the one value to log.

Member Data Documentation

◆ arguments

std::vector<NodePtr> a11::flow::syntax::LogTail::arguments

What to log, or what fills the format. it is bound inside a stage.

◆ format

std::string a11::flow::syntax::LogTail::format

logf's format, with escapes resolved. Empty for a log.

◆ has_format

bool a11::flow::syntax::LogTail::has_format = false

Whether a format was written at all, which tells logf "" from log.

◆ level

Word a11::flow::syntax::LogTail::level

The level as written, or empty for the default.

See [vocabulary::LogLevels].


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