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

One log as a sink sees it. More...

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

Public Attributes

std::string_view action_name {}
 
std::string_view action_id {}
 
LogLevel level = kDefaultLogLevel
 
std::string_view channel {}
 
std::string_view file {}
 
std::optional< int > lineno {}
 
bool internal = false
 
absl::Time timestamp = absl::InfinitePast()
 
std::string_view mimetype {}
 
std::string_view data {}
 The chunk's payload as written.
 

Detailed Description

One log as a sink sees it.

A borrowed view of a written chunk and its source action. A sink must copy fields it retains beyond the call.

Member Data Documentation

◆ action_id

std::string_view a11::actions::LogRecord::action_id {}

◆ action_name

std::string_view a11::actions::LogRecord::action_name {}

◆ channel

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

◆ data

std::string_view a11::actions::LogRecord::data {}

The chunk's payload as written.

Text for a string-like log; see LogOptions::mimetype.

◆ file

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

◆ internal

bool a11::actions::LogRecord::internal = false

◆ level

LogLevel a11::actions::LogRecord::level = kDefaultLogLevel

◆ lineno

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

◆ mimetype

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

◆ timestamp

absl::Time a11::actions::LogRecord::timestamp = absl::InfinitePast()

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