|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
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. | |
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.
| std::string_view a11::actions::LogOptions::channel {} |
Logical channel; see kLogChannelAttribute.
| std::string_view a11::actions::LogOptions::file {} |
Source file the log came from; see kLogFileAttribute.
| bool a11::actions::LogOptions::internal = false |
Whether this log is A11's own bookkeeping; see kLogInternalAttribute.
| std::string_view a11::actions::LogOptions::level {} |
Level name; empty is kDefaultLogLevel. See ParseLogLevel.
| std::optional<int> a11::actions::LogOptions::lineno {} |
Source line the log came from; see kLogLinenoAttribute.
| const data::ByteMap* absl_nullable a11::actions::LogOptions::metadata = nullptr |
Extra attributes, merged before the fields above. Not owned.
| 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.