|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
#include "a11/actions/log.h"#include <optional>#include <string>#include <string_view>#include <utility>#include <absl/base/log_severity.h>#include <absl/log/log.h>#include <absl/status/status.h>#include <absl/status/statusor.h>#include <absl/strings/ascii.h>#include <absl/strings/match.h>#include <absl/strings/numbers.h>#include <absl/strings/str_cat.h>#include <absl/time/time.h>#include "a11/data/serialization.h"#include "a11/data/types.h"#include "thread/boost_primitives.h"Namespaces | |
| namespace | a11 |
| namespace | a11::actions |
Functions | |
| std::string_view | a11::actions::LogLevelName (LogLevel level) |
Canonical lowercase name of level, as written to a chunk. | |
| absl::StatusOr< LogLevel > | a11::actions::ParseLogLevel (std::string_view name) |
| Parses a level name. | |
| absl::LogSeverity | a11::actions::LogLevelToSeverity (LogLevel level) |
The Abseil severity level is reported at. | |
| void | a11::actions::SetActionLogSink (ActionLogSink sink) |
Installs sink as the process's action log sink. | |
| ActionLogSink | a11::actions::GetActionLogSink () |
| Returns the installed sink; never null. | |
| void | a11::actions::ReportLog (const LogRecord &record) |
Reports record to the installed sink. | |
| bool | a11::actions::IsTextualLogMimetype (std::string_view mimetype) |
Whether a log payload of mimetype reads as text. | |
| std::string | a11::actions::LogText (const LogRecord &record) |
record as one line: its payload where that is text, a description of it where it is not. | |
| LogRecord | a11::actions::LogRecordFromChunk (const data::Chunk &chunk, std::string_view action_name={}, std::string_view action_id={}) |
| Reads a LogRecord back out of a log chunk. | |