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

Everything about a log other than the object being logged. More...

#include <cpp/a11/actions/log.h>

Public Attributes

std::string_view level {}
 Level name; empty is kDefaultLogLevel. See ParseLogLevel.
 
std::string_view mimetype {}
 Media type hint for the serializer.
 
std::string_view channel {}
 Logical channel; see kLogChannelAttribute.
 
std::string_view file {}
 Source file the log came from; see kLogFileAttribute.
 
std::optional< int > lineno {}
 Source line the log came from; see kLogLinenoAttribute.
 
bool internal = false
 Whether this log is A11's own bookkeeping; see kLogInternalAttribute.
 
const data::ByteMap *absl_nullable metadata = nullptr
 Extra attributes, merged before the fields above. Not owned.
 

Detailed Description

Everything about a log other than the object being logged.

Every field is optional. Named fields override matching entries in metadata. String fields are borrowed for the duration of Action::Log.

Member Data Documentation

◆ channel

std::string_view a11::actions::LogOptions::channel {}

Logical channel; see kLogChannelAttribute.

◆ file

std::string_view a11::actions::LogOptions::file {}

Source file the log came from; see kLogFileAttribute.

◆ internal

bool a11::actions::LogOptions::internal = false

Whether this log is A11's own bookkeeping; see kLogInternalAttribute.

◆ level

std::string_view a11::actions::LogOptions::level {}

Level name; empty is kDefaultLogLevel. See ParseLogLevel.

◆ lineno

std::optional<int> a11::actions::LogOptions::lineno {}

Source line the log came from; see kLogLinenoAttribute.

◆ metadata

const data::ByteMap* absl_nullable a11::actions::LogOptions::metadata = nullptr

Extra attributes, merged before the fields above. Not owned.

◆ mimetype

std::string_view a11::actions::LogOptions::mimetype {}

Media type hint for the serializer.

Empty uses a11::data::kTextMimetype for string-like values. Set an explicit media type to serialize a std::string as bytes.


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