DEENESPTFRRUARHIKOZHNL

命名空间 ara::log

用户指南人工智能生成

支持创建日志记录上下文、格式化消息流和客户端状态监控。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: aad9146dd3fe 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

支持创建日志记录上下文、格式化消息流和客户端状态监控。

命名空间 ara::log 通过管理上下文记录器并将消息流类型化输出到 DLT 后端或控制台等接收器,提供自适应日志记录服务 [SWS_LOG_00021]。应用程序通过工厂函数获取记录器,通过参数包装器准备格式化有效负载,并将数据线程安全地送入日志消息。作为一项重要约束条件,所有记录器实例的所有权仍归框架所有,而连接状态处理程序的注册显式为非线程安全 [SWS_LOG_00205]。

上下文

命名空间 ara::log 为自适应应用程序提供中央日志记录基础设施。其核心职责包括通过类 Logger 管理日志记录上下文、通过 LogStream 结构化生成日志消息,以及通过 Argument 和 Format 类型化传递格式化有效负载。该框架充当应用程序端日志调用与目标接收器之间的纽带:DLT 后端(Diagnostic Log and Trace)用作主要接收器,其连接状态通过枚举 ClientState 表示 [SWS_LOG_00098]。如果无可用模型,控制台默认用作接收器 [SWS_LOG_00021]。外部对端的状态变化可以通过类型为 ConnectionStateHandler 的回调函数进行监控 [SWS_LOG_00265]。

LogKontext Anwendung Anwendung LoggingFramework LoggingFramework Anwendung->LoggingFramework nutzt API DltBackEnd DltBackEnd LoggingFramework->DltBackEnd 传输日志消息 Konsole Konsole LoggingFramework->Konsole Fallback-Ausgabe RemoteClient RemoteClient DltBackEnd->RemoteClient Zustandsmeldung

上下文图:日志框架在应用程序、控制台、DLT 后端与外部客户端之间的交互伙伴。来源:[SWS_LOG_00021]、[SWS_LOG_00098]、[SWS_LOG_00205]。

生命周期

Logger 的实例不直接由应用程序构造,而是通过工厂函数 CreateLogger 实例化并在日志框架中注册 [SWS_LOG_00021]、[SWS_LOG_00263]。所有权关系已明确定义:所有权完全保留在日志框架内(“Ownership stays within the Logging framework”),该框架向调用方返回引用(Logger&)[SWS_LOG_00021]。或者,可以基于 ara::core::InstanceSpecifier 按照模型进行创建 [SWS_LOG_00256]。解释:由于框架保留所有权,已注册记录器的生命周期应当绑定到上级进程。 问题 Q-4b81e462cf2e43b1 (未决)

在并发性方面,通过 CreateLogger 创建记录器被指定为线程安全 [SWS_LOG_00021]。相比之下,通过 RegisterConnectionStateHandler 注册连接状态处理程序显式为非线程安全(“not thread-safe”)[SWS_LOG_00205];因此,它通常必须在初始化阶段、并发活动启动之前完成。此外,始终只能有一个处理程序处于活动状态;重新注册会立即替换先前的回调 [SWS_LOG_00205]。外部对端的连接生命周期经历阶段 kUnknown(DLT 后端尚未激活)、kNotConnected 和 kConnected [SWS_LOG_00098]。

使用路径

常规流程包括配置监控、获取记录器和格式化消息输出:

命名空间 ara::log 中的初始化与日志记录应用ara::logLogStreamUse Case: 配置与初始化RegisterConnectionStateHandler(callback)CreateLogger("ctx", "desc", LogLevel::kInfo)Logger&Use Case: 参数准备与输出Arg(val, "wert", "ms", Hex())Argument<T>operator<<(out, ec)LogStream&

时序图:初始化、记录器创建以及通过 LogStream 输出格式化数据时的典型交互序列。来源:[SWS_LOG_00021]、[SWS_LOG_00063]、[SWS_LOG_00124]、[SWS_LOG_00201]、[SWS_LOG_00205]。

错误场景

该命名空间的函数大部分声明为 noexcept 并提供 no-throw 保证,但受严格的前置条件和违规规则约束:

  • 清单违规:通过 CreateLogger(const ara::core::InstanceSpecifier&) 基于模型创建记录器时,可能会触发特定的运行时违规:InstanceSpecifierMappingIntegrityViolation(说明符无法在模型中解析或未指向 PortPrototype)、PortInterfaceMappingViolation(映射类型与预期的 PortInterface 不匹配)、ProcessMappingViolation(未找到匹配的进程)以及 InstanceSpecifierAlreadyInUseViolation(说明符已在进程中使用)[SWS_LOG_00256]。
  • 无效参数类型化:如果类型 T 既不是算术类型也不是 bool,并且既不能转换为 ara::core::StringView 也不能转换为 ara::core::Span<const ara::core::Byte>,则调用 Arg 在句法上是不合法的(“ill-formed”)。同样,在字符串、字节范围或布尔类型中传递不同于 nullptr 的单位文本 unit 会导致错误 [SWS_LOG_00201]。
  • 错误表示:将 core::ErrorCode 实例输出到控制台时,错误代码按实现定义的方式进行格式化,其中必须包含域名(ErrorCode::Domain().Name())和整型错误编号 [SWS_LOG_00124]。

本指南基于 Adaptive Platform Release R25-11 中 log 模块的规范。

主题图

KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.

类图

Abgerundete Rahmen = Namespace- bzw. Klassen-Scopes; hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); graue Boxen = namespace-fremde bzw. externe Basisklassen. Klicken öffnet die jeweilige Klassen- bzw. cppreference-Seite.

G cluster_ns ara::log nara__log__Argument Argument nara__log__Format «struct» Format nara__log__LogStream LogStream nara__log__Logger Logger

详细视图

请在大纲中选择一个条目。

Logger-Kontext

Logger 类

Represents a logger context

CreateLogger 函数 3

Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.

重载 CreateLogger 3
Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription, LogLevel ctxDefLogLevel) noexcept; SWS_LOG_00021
Logger & CreateLogger (const ara::core::InstanceSpecifier &is) noexcept; SWS_LOG_00256
Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription) noexcept; SWS_LOG_00263

Register a callback to be invoked whenever the connection state changes. Only a single function can be installed this way; if a callback was already registered before, only the newly registered one is used henceforth.

void RegisterConnectionStateHandler (ConnectionStateHandler callback) noexcept;

Client state representing the connection state of an external client. .

enum class ClientState : std::int8_t {...};
LogLevel 枚举

List of possible severity levels .

enum class LogLevel : std::uint8_t {...};

Callback function type to be registered in ara::log::RegisterConnectionStateHandler.

using ConnectionStateHandler = std::function<void(ClientState)>;

Nachrichtenaufbau

Wrapper type for holding a payload argument with its attributes

Represents a Log message, allowing stream operators to be used for appending data

输入/输出 << 5
LogStream & operator<< (LogStream &out, LogLevel value) noexcept; SWS_LOG_00063
LogStream & operator<< (LogStream &out, const core::ErrorCode &ec) noexcept; SWS_LOG_00124
template <typename Rep, typename Period> LogStream & operator<< (LogStream &out, const std::chrono::duration< Rep, Period > &value) noexcept; SWS_LOG_00125
LogStream & operator<< (LogStream &out, const ara::core::Instance Specifier &value) noexcept; SWS_LOG_00126
LogStream & operator<< (LogStream &out, const void *value) noexcept; SWS_LOG_00127
Arg 函数

Create a wrapper object for the given arguments. Calling this function shall be ill-formed if any of these conditions are met: • T is not an arithmetic type and not "bool" and not convertible to "ara::core::StringView" and not convertible to "ara::core::Span<const ara::core::Byte>" • T is convertible to "ara::core::StringView" or convertible to "ara::core::Span<const ara::core::Byte>" or "bool", and "unit" is not "nullptr"

template <typename T> Argument< T > Arg (T &&arg, const char *name=nullptr, const char *unit=nullptr, Format format=Dflt()) noexcept;

Zahlenformate

Format 类

A type holding a formatting hint

AutoFloat 函数

Create a Format instance with Fmt::kAutoFloat formatting hint and given precision.

constexpr Format AutoFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kAutoFloat formatting hint and a precision that is sufficient for full round-trip safety. .

constexpr Format AutoFloatMax () noexcept;
Bin 函数 2

Create a Format instance with Fmt::kBin formatting hint and default precision. .

重载 Bin 2
constexpr Format Bin () noexcept; SWS_LOG_00215
constexpr Format Bin (std::uint16_t precision) noexcept; SWS_LOG_00216
Dec 函数 2

Create a Format instance with Fmt::kDec formatting hint and default precision. .

重载 Dec 2
constexpr Format Dec () noexcept; SWS_LOG_00211
constexpr Format Dec (std::uint16_t precision) noexcept; SWS_LOG_00212
DecFloat 函数

Create a Format instance with Fmt::kDecFloat formatting hint and given precision.

constexpr Format DecFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kDecFloat formatting hint and a precision that is sufficient for full round-trip safety. .

constexpr Format DecFloatMax () noexcept;
Dflt 函数

Create a Format instance with Fmt::kDefault formatting hint. .

constexpr Format Dflt () noexcept;
EngFloat 函数

Create a Format instance with Fmt::kEngFloat formatting hint and given precision.

constexpr Format EngFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kEngFloat formatting hint and a precision that is sufficient for full round-trip safety. .

constexpr Format EngFloatMax () noexcept;
Hex 函数 2

Create a Format instance with Fmt::kHex formatting hint and default precision. .

重载 Hex 2
constexpr Format Hex () noexcept; SWS_LOG_00209
constexpr Format Hex (std::uint16_t precision) noexcept; SWS_LOG_00210
HexFloat 函数

Create a Format instance with Fmt::kHexFloat formatting hint and given precision.

constexpr Format HexFloat (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kHexFloat formatting hint and a precision that is sufficient for full round-trip safety. .

constexpr Format HexFloatMax () noexcept;
Oct 函数 2

Create a Format instance with Fmt::kOct formatting hint and default precision. .

重载 Oct 2
constexpr Format Oct () noexcept; SWS_LOG_00213
constexpr Format Oct (std::uint16_t precision) noexcept; SWS_LOG_00214
Fmt 枚举

Format specifiers for log message arguments .

enum class Fmt : std::uint16_t {...};

枚举

枚举 ClientState [SWS_LOG_00098] Upstream: RS_LT_00003, RS_LT_00050

enum class ClientState :              std::int8_t {...};

Client state representing the connection state of an external client. .

Header-Datei#include "ara/log/common.h"
Forwarding-Header#include "ara/log/log_fwd.h"
Scopenamespace ara::log
SymbolClientState
Basistypstd::int8_t

Werte

EnumeratorBeschreibung
kUnknown= -1 DLT back-end not up and running yet, state cannot be determined.
kNotConnectedNo remote client detected.
kConnectedRemote client is connected.
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b76d16a569dc 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

枚举 ara::log::ClientState 表示外部客户端到 DLT 后端的当前连接状态 [SWS_LOG_00098]。它基于数据类型 std::int8_t,并通过头文件 #include "ara/log/common.h" 或转发头文件 #include "ara/log/log_fwd.h" 包含 [SWS_LOG_00098]。

状态与语义

该枚举定义了三种离散的连接状态 [SWS_LOG_00098]:

  • kUnknown (-1):DLT 后端尚未准备就绪;此时无法确定实际的连接状态 [SWS_LOG_00098]。
  • kNotConnected:未检测到外部客户端[SWS_LOG_00098]。
  • kConnected:远程客户端已成功连接[SWS_LOG_00098]。

协同交互与并发性

该枚举主要用作函数回调ConnectionStateHandler(定义为std::function<void(ClientState)>)的传递参数,该回调通过ara::log::RegisterConnectionStateHandler注册[SWS_LOG_00265]。该处理程序被声明为线程安全的[SWS_LOG_00265]。解释:一旦 DLT 后端检测到外部客户端的状态变化,已注册的处理程序可能会被异步调用。 问题 Q-b78ef73772a658a2 (未决)

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 I1)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00098
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00098@rel:R25-11#785831c0
Content hash
785831c0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00098
Status: valid/auto-approved Version: rel:R25-11#2440c3c2 Versionshistorie & Revisions (2 transitions, 8 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00098@rel:R25-11#2440c3c2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ecd2ddfb2026-09-30
  • R19-11rel:R19-11#ddc8d7272026-10-14
  • R20-11rel:R20-11#5eeddd132026-10-14
  • R21-11rel:R21-11#f7f224d82026-10-14
  • R22-11rel:R22-11#cd4658202026-10-14
  • R23-11rel:R23-11#bfb4ebcb2026-10-14
  • R24-11rel:R24-11#bfb4ebcb2026-10-14
  • R25-11rel:R25-11#2440c3c22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

枚举 Fmt [SWS_LOG_00206] Upstream: RS_LT_00046

enum class Fmt :         std::uint16_t {...};

Format specifiers for log message arguments .

Header-Datei#include "ara/log/logger.h"
Forwarding-Header#include "ara/log/log_fwd.h"
Scopenamespace ara::log
SymbolFmt
Basistypstd::uint16_t

Werte

EnumeratorBeschreibung
kDefault=0 implementation-defined formatting
kDec=1 decimal (signed/unsigned)
kOct=2 octal
kHex=3 hexadecimal
kBin=4 binary
kDecFloat=5 decimal float (like printf "%f")
kEngFloat=6 engineering float (like printf "%e")
kHexFloat=7 hex float (like printf "%a")
kAutoFloat=8 automatic "shortest" float (like printf "%g")

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00206
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00206@rel:R25-11#e794116d
Content hash
e794116d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00206
Status: valid/auto-approved Version: rel:R25-11#4ddac557 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00206@rel:R25-11#4ddac557
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#eb476d332026-09-30
  • R21-11rel:R21-11#48a0752f2026-10-14
  • R22-11rel:R22-11#4a6df2302026-10-14
  • R23-11rel:R23-11#4c785b962026-10-14
  • R24-11rel:R24-11#d32c534c2026-10-14
  • R25-11rel:R25-11#4ddac5572026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

枚举 LogLevel [SWS_LOG_00018] Upstream: RS_LT_00003, RS_LT_00049

enum class LogLevel :                std::uint8_t {...};

List of possible severity levels .

Header-Datei#include "ara/log/common.h"
Forwarding-Header#include "ara/log/log_fwd.h"
Scopenamespace ara::log
SymbolLogLevel
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
No logging.
kFatal= 0x01 Fatal error, not recoverable.
kError= 0x02 Error with impact to correct functionality.
kWarn= 0x03 Warning if correct behavior cannot be ensured.
kInfo= 0x04 Informational, providing high level understanding.
kDebug= 0x05 Detailed information for programmers.
kVerbose= 0x06 Extra-verbose debug messages (highest grade of information)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00018
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00018@rel:R25-11#7aae030e
Content hash
7aae030e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00018
Status: valid/auto-approved Version: rel:R25-11#be04e30f Versionshistorie & Revisions (2 transitions, 8 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00018@rel:R25-11#be04e30f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f9d702782026-09-30
  • R19-11rel:R19-11#5045aef42026-10-14
  • R20-11rel:R20-11#6bf64c6a2026-10-14
  • R21-11rel:R21-11#bc6daa5d2026-10-14
  • R22-11rel:R22-11#bc6daa5d2026-10-14
  • R23-11rel:R23-11#592fecb42026-10-14
  • R24-11rel:R24-11#e925b37c2026-10-14
  • R25-11rel:R25-11#be04e30f2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

类型别名

类型别名 ConnectionStateHandler [SWS_LOG_00265] Upstream: RS_LT_00003, RS_LT_00050

using ConnectionStateHandler = std::function<void(ClientState)>;

Callback function type to be registered in ara::log::RegisterConnectionStateHandler.

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
SymbolConnectionStateHandler
Thread-Sicherheitthread-safe
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 61bab347af38 来源 未决问题(1)
译自德文指南AI 生成gemini-3.8-flash-low · 2026-10-13 · 德文原文

类型别名 ConnectionStateHandler 指定了用于监视模块 log 中连接状态的回调函数的签名 [SWS_LOG_00265]。它在命名空间 ara::log 中声明,并需要包含头文件 ara/log/logger.h [SWS_LOG_00265]。作为函数包装器 std::function<void(ClientState)>,回调例程通过类型为 ClientState 的参数接收发生的连接状态,并且不提供返回值 [SWS_LOG_00265]。

通过注册函数 RegisterConnectionStateHandler 进行使用 [SWS_LOG_00205]。处理程序的交互和生命周期适用以下规定:

  • 调用时机:每当客户端的连接状态发生变化时,都会调用已注册的回调函数 [SWS_LOG_00205]。
  • 排他性:在任何时间点只能有一个处于活动状态的已注册处理程序 [SWS_LOG_00205]。如果之前已注册过回调,则新传入的函数将完全替换它,从而在此后仅调用新的处理程序 [SWS_LOG_00205]。
  • 异常安全性:注册函数 RegisterConnectionStateHandler 被指定为 noexcept,因此传递函数回调是异常安全的 [SWS_LOG_00205]。

关于并发性,该规范元素被标记为线程安全 [SWS_LOG_00265]。Interpretation:由于状态变更可能由日志基础设施异步通知,处理程序中提供的应用逻辑可能必须设计为可重入的,且不得执行阻塞操作,以免妨碍通信上下文。 问题 Q-ca507d992cc31284 (未决)

此使用说明基于 AUTOSAR 规范 R25-11 自动生成。

实现者指南即将推出(复杂度 I1)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00265
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00265@rel:R25-11#352e04e6
Content hash
352e04e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00265
Status: valid/auto-approved Version: rel:R25-11#57189591 Versionshistorie & Revisions (2 transitions, 3 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00265@rel:R25-11#57189591
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#625d0fcf2026-09-30
  • R24-11rel:R24-11#571895912026-10-14
  • R25-11rel:R25-11#571895912026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

自由函数文档

函数 Arg [SWS_LOG_00201] Upstream: RS_LT_00003, RS_LT_00046

template <typename T> Argument< T > Arg (T &&arg, const char *name=nullptr, const char *unit=nullptr, Format format=Dflt()) noexcept;

Create a wrapper object for the given arguments. Calling this function shall be ill-formed if any of these conditions are met: • T is not an arithmetic type and not "bool" and not convertible to "ara::core::StringView" and not convertible to "ara::core::Span<const ara::core::Byte>" • T is convertible to "ara::core::StringView" or convertible to "ara::core::Span<const ara::core::Byte>" or "bool", and "unit" is not "nullptr"

Create a wrapper object for the given arguments. Calling this function shall be ill-formed if any of these conditions are met: • T is not an arithmetic type and not "bool" and not convertible to "ara::core::StringView" and not convertible to "ara::core::Span<const ara::core::Byte>" • T is convertible to "ara::core::StringView" or convertible to "ara::core::Span<const ara::core::Byte>" or "bool", and "unit" is not "nullptr"

Validate requirementfunction Arg [SWS_LOG_00201] Upstream: RS_LT_00003 , RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a wrapper object for the given arguments. Calling this function shall be ill-formed if any of these conditions are met: • T is not an arithmetic type and not "bool" and not convertible to "ara::core::StringView" and not convertible to "ara::core::Span<const ara::core::Byte>" • T is convertible to "ara::core::StringView" or convertible to "ara::core::Span<const ara::core::Byte>" or "bool", and "unit" is not "nullptr"

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Arg [SWS_LOG_00201] Upstream: RS_LT_00003 , RS_LT_00046
Requirement-ID
SWS_LOG_00201
Flag-ID
SWS_LOG_00201
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
fd591f32c88478c734d44a1ab7e6d495069c6fb2b0486eb474e0230bb7b65db4
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Template-Parameter

ParameterBeschreibung
Tthe type of arg

Parameter (in)

ParameterBeschreibung
argan argument payload object
namean optional "name" attribute for arg
unitan optional "unit" attribute for arg
formatan optional formatting hint for integral or floating-point arguments; the default is to use the implementation’s standard formatting

Rückgabewert

TypBeschreibung
Argument< T >a wrapper object holding the supplied arguments

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00201
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00201@rel:R25-11#a5b70327
Content hash
a5b70327
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00201
Status: valid/auto-approved Version: rel:R25-11#0c1e3e68 Versionshistorie & Revisions (3 transitions, 7 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00201@rel:R25-11#0c1e3e68
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#5383d5782026-09-30
  • R20-11rel:R20-11#19b7526a2026-10-14
  • R21-11rel:R21-11#af194ae52026-10-14
  • R22-11rel:R22-11#72c566222026-10-14
  • R23-11rel:R23-11#a20c5f1c2026-10-14
  • R24-11rel:R24-11#cb9743612026-10-14
  • R25-11rel:R25-11#0c1e3e682026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 AutoFloat [SWS_LOG_00223] Upstream: RS_LT_00046

constexpr Format AutoFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kAutoFloat formatting hint and given precision.

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00223
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00223@rel:R25-11#e9c77eb4
Content hash
e9c77eb4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00223
Status: valid/auto-approved Version: rel:R25-11#ed3381e7 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00223@rel:R25-11#ed3381e7
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#1fc6d9f32026-09-30
  • R21-11rel:R21-11#40d2b1282026-10-14
  • R22-11rel:R22-11#a0db1afb2026-10-14
  • R23-11rel:R23-11#b84e4d992026-10-14
  • R24-11rel:R24-11#ed3381e72026-10-14
  • R25-11rel:R25-11#ed3381e72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 AutoFloatMax [SWS_LOG_00224] Upstream: RS_LT_00046

constexpr Format AutoFloatMax () noexcept;

Create a Format instance with Fmt::kAutoFloat formatting hint and a precision that is sufficient for full round-trip safety. .

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00224
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00224@rel:R25-11#4e08c35e
Content hash
4e08c35e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00224
Status: valid/auto-approved Version: rel:R25-11#a4cb126a Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00224@rel:R25-11#a4cb126a
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#5fd78aa12026-09-30
  • R21-11rel:R21-11#984121432026-10-14
  • R22-11rel:R22-11#14ab4ecd2026-10-14
  • R23-11rel:R23-11#444385d22026-10-14
  • R24-11rel:R24-11#a4cb126a2026-10-14
  • R25-11rel:R25-11#a4cb126a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Bin [SWS_LOG_00215] Upstream: RS_LT_00046

constexpr Format Bin () noexcept;

Create a Format instance with Fmt::kBin formatting hint and default precision. .

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00215
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00215@rel:R25-11#14519f8b
Content hash
14519f8b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00215
Status: valid/auto-approved Version: rel:R25-11#be9f44f7 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00215@rel:R25-11#be9f44f7
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#97534f742026-09-30
  • R21-11rel:R21-11#01fe5f422026-10-14
  • R22-11rel:R22-11#65b5d3ae2026-10-14
  • R23-11rel:R23-11#ac3556212026-10-14
  • R24-11rel:R24-11#be9f44f72026-10-14
  • R25-11rel:R25-11#be9f44f72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Bin [SWS_LOG_00216] Upstream: RS_LT_00046

constexpr Format Bin (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kBin formatting hint and given precision.

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00216
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00216@rel:R25-11#6aae7b6f
Content hash
6aae7b6f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00216
Status: valid/auto-approved Version: rel:R25-11#9b04c221 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00216@rel:R25-11#9b04c221
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#21567ce82026-09-30
  • R21-11rel:R21-11#7dd8f5642026-10-14
  • R22-11rel:R22-11#7fcfffa42026-10-14
  • R23-11rel:R23-11#56568ba32026-10-14
  • R24-11rel:R24-11#9b04c2212026-10-14
  • R25-11rel:R25-11#9b04c2212026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003, RS_LT_00050

Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription, LogLevel ctxDefLogLevel) noexcept;

Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.

Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.

Validate requirementfunction CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003 , RS_LT_00050

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003 , RS_LT_00050
Requirement-ID
SWS_LOG_00021
Flag-ID
SWS_LOG_00021
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
4d0c42e8d7e43c108ffb3a2b8a2487f6375da5adfb6e283cc7c5b69c302397dd
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: d61f94356eb8 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

命名空间 ara::log 中的函数 CreateLogger 用于创建并注册一个 Logger 对象,该对象管理日志框架内的相应上下文 [SWS_LOG_00021]。调用时传入上下文标识符 ctxId、文本描述 ctxDescription 以及默认日志级别 ctxDefLogLevel [SWS_LOG_00021]。如果没有可用的模型,该框架默认将输出重定向至作为接收器的控制台 [SWS_LOG_00021]。

该函数返回对内部管理实例的引用 Logger &。所有权(Ownership)在此过程中完全保留在日志框架 [SWS_LOG_00021] 中。

并发性与执行安全性

该接口被声明为 noexcept,并被指定为既是异常安全(exception safe)又是线程安全(thread-safe)的 [SWS_LOG_00021]。因此,可以安全地从多个并发线程中调用它。

交互与替代方案

针对不同的配置方式,提供了相关的接口:

  • 另一种重载仅允许通过 ctxId 和 ctxDescription 进行实例化 [SWS_LOG_00263],其中默认日志级别隐式使用 Warning [SWS_LOG_00021]。
  • 此外,还可以基于模型通过来自清单的 ara::core::InstanceSpecifier 派生出 Logger [SWS_LOG_00256]。在此过程中,平台会检查诸如 InstanceSpecifierMappingIntegrityViolation 或 PortInterfaceMappingViolation 的错误 [SWS_LOG_00256]。

本文本由 AI 基于 AUTOSAR R25-11 规范文档生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ctxIdThe context ID.
ctxDescriptionThe description of the provided context ID.
ctxDefLogLevelThe default log level, set to Warning severity if not explicitly specified.

Rückgabewert

TypBeschreibung
Logger &Reference to the internal managed instance of a Logger object. Ownership stays within the Logging framework

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00021
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00021@rel:R25-11#646065e3
Content hash
646065e3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00021
Status: valid/auto-approved Version: rel:R25-11#a67ccf8e Versionshistorie & Revisions (3 transitions, 8 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00021@rel:R25-11#a67ccf8e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#976bcea32026-09-30
  • R19-11rel:R19-11#2d99153d2026-10-14
  • R20-11rel:R20-11#c08b10902026-10-14
  • R21-11rel:R21-11#c08b10902026-10-14
  • R22-11rel:R22-11#db00ac392026-10-14
  • R23-11rel:R23-11#a46fdcaf2026-10-14
  • R24-11rel:R24-11#a67ccf8e2026-10-14
  • R25-11rel:R25-11#a67ccf8e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 CreateLogger [SWS_LOG_00256] Upstream: RS_LT_00003, RS_LT_00050

Logger & CreateLogger (const ara::core::InstanceSpecifier &is) noexcept;

Creates a Logger object derived from the manifest.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 27922916bcc4 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

同步函数 CreateLogger 基于清单的模型数据创建或返回对内部管理的 Logger 对象的引用 [SWS_LOG_00256]。调用参数是对 ara::core::InstanceSpecifier 的引用,用于在运行进程的上下文中标识所需的对象模型元素 [SWS_LOG_00256]。

该函数被声明为 noexcept,被视为异常安全(exception safe),并被指定为线程安全,因此可以进行可重入和并发调用 [SWS_LOG_00256]。对于错误的配置或无效的模型上下文,规范定义了若干违规(Violations) [SWS_LOG_00256]:

  • InstanceSpecifierMappingIntegrityViolation:当 InstanceSpecifier 在 Executable 上下文中无法解析,或指向除 PortPrototype 以外的其他元素时发生 [SWS_LOG_00256]。
  • PortInterfaceMappingViolation:如果映射类型与端口接口的预期类型不匹配时触发 [SWS_LOG_00256]。
  • ProcessMappingViolation:虽然存在匹配的 InstanceRef,但没有建模的进程与运行时进程相匹配时生效 [SWS_LOG_00256]。
  • InstanceSpecifierAlreadyInUseViolation:指示框架中的构造函数使用了该进程中已被使用的标识符进行调用 [SWS_LOG_00256]。

与通过上下文 ID 和描述字符串以编程方式初始化 Logger 并在缺少模型时默认使用控制台作为接收器的重载 [SWS_LOG_00021] 和 [SWS_LOG_00263] 相比,此处的配置完全是由清单驱动的。在所有变体中,实例的所有权均保留在日志框架内部 [SWS_LOG_00263]。

本文本由 AI 策划,并基于 AUTOSAR 规范的要求。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- The type of mapping does not match the expected type of Port pingViolation Interface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process.

Parameter (in)

ParameterBeschreibung
isan InstanceSpecifier

Rückgabewert

TypBeschreibung
Logger &reference to the internal managed instance of a Logger object

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00256
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00256@rel:R25-11#2ec719b6
Content hash
2ec719b6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00256
Status: valid/ai-decided Version: rel:R25-11#9c491267 Versionshistorie & Revisions (2 transitions, 5 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00256@rel:R25-11#9c491267
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#0fee57142026-09-30
  • R22-11rel:R22-11#ee39b30b2026-10-14
  • R23-11rel:R23-11#37c2725e2026-10-14
  • R24-11rel:R24-11#d71446c02026-10-14
  • R25-11rel:R25-11#9c4912672026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement

函数 CreateLogger [SWS_LOG_00263] Upstream: RS_LT_00003, RS_LT_00050

Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription) noexcept;

Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e7acfbf050b9 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

命名空间 ara::log([SWS_LOG_00263])中的函数 CreateLogger 用于在 AUTOSAR Adaptive 的日志框架内创建并注册上下文绑定的 Logger 对象。

使用

通过头文件 ara/log/logger.h,该函数分别接收类型为 ara::core::StringView 的上下文标识符 ctxId 以及详细描述 ctxDescription [SWS_LOG_00263]。作为返回值,调用返回对所创建 Logger 对象的内部管理实例的引用 Logger & [SWS_LOG_00263]。该实例的所有权(Ownership)永久保留在日志框架中,不会转移给调用方 [SWS_LOG_00263]。如果系统中没有可用模型,则控制台默认作为所有日志输出的接收器(Sink) [SWS_LOG_00263]。

错误处理与并发

该调用未定义特定错误代码,且不会抛出 C++ 异常,因为该函数被指定为 noexcept 并被标识为异常安全(exception safe) [SWS_LOG_00263]。在并发性方面,CreateLogger 是线程安全(thread-safe)的,因此无需外部同步即可从多个线程并发调用该函数 [SWS_LOG_00263]。

相互作用

日志框架提供了紧密相关的重载:除了此双参数签名外,一种重载允许通过 ctxDefLogLevel 额外配置默认日志级别([SWS_LOG_00021])。另一个签名则允许直接从清单通过 ara::core::InstanceSpecifier 创建 Logger 对象([SWS_LOG_00256])。

此使用说明基于AUTOSAR规范自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ctxIdThe context ID
ctxDescriptionThe description of the provided context ID

Rückgabewert

TypBeschreibung
Logger &reference to the internal managed instance of a Logger object Ownership stays within the Logging framework

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00263
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00263@rel:R25-11#54fb9d20
Content hash
54fb9d20
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00263
Status: valid/auto-approved Version: rel:R25-11#3aa56509 Versionshistorie & Revisions (2 transitions, 5 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00263@rel:R25-11#3aa56509
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#088786b02026-09-30
  • R22-11rel:R22-11#65e248a22026-10-14
  • R23-11rel:R23-11#0539ae5b2026-10-14
  • R24-11rel:R24-11#fab704f32026-10-14
  • R25-11rel:R25-11#3aa565092026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Dec [SWS_LOG_00211] Upstream: RS_LT_00046

constexpr Format Dec () noexcept;

Create a Format instance with Fmt::kDec formatting hint and default precision. .

Create a Format instance with Fmt::kDec formatting hint and default precision.

Validate requirementfunction Dec [SWS_LOG_00211] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kDec formatting hint and default precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Dec [SWS_LOG_00211] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00211
Flag-ID
SWS_LOG_00211
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
7b662fea316c6815bd91fa43ec23044acc6e3dac4df5937ea0d37d7707367e60
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00211
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00211@rel:R25-11#23208791
Content hash
23208791
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00211
Status: valid/auto-approved Version: rel:R25-11#552d97a6 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00211@rel:R25-11#552d97a6
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#0968f5752026-09-30
  • R21-11rel:R21-11#733c94cd2026-10-14
  • R22-11rel:R22-11#1ab3d9a92026-10-14
  • R23-11rel:R23-11#b6bea3352026-10-14
  • R24-11rel:R24-11#552d97a62026-10-14
  • R25-11rel:R25-11#552d97a62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 Dec [SWS_LOG_00212] Upstream: RS_LT_00046

constexpr Format Dec (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kDec formatting hint and given precision.

Create a Format instance with Fmt::kDec formatting hint and given precision.

Validate requirementfunction Dec [SWS_LOG_00212] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kDec formatting hint and given precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Dec [SWS_LOG_00212] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00212
Flag-ID
SWS_LOG_00212
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
9f46914995a5d1c13b48a1c193c571c6cb98b8db3bacf23bd5dc90ec4ab29578
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00212
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00212@rel:R25-11#6fe7ea5c
Content hash
6fe7ea5c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00212
Status: valid/auto-approved Version: rel:R25-11#bf6199f4 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00212@rel:R25-11#bf6199f4
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#fc9c03862026-09-30
  • R21-11rel:R21-11#4164b1fa2026-10-14
  • R22-11rel:R22-11#cacb954f2026-10-14
  • R23-11rel:R23-11#825293ee2026-10-14
  • R24-11rel:R24-11#bf6199f42026-10-14
  • R25-11rel:R25-11#bf6199f42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 DecFloat [SWS_LOG_00217] Upstream: RS_LT_00046

constexpr Format DecFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kDecFloat formatting hint and given precision.

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00217
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00217@rel:R25-11#f69f97a3
Content hash
f69f97a3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00217
Status: valid/auto-approved Version: rel:R25-11#b1e9874d Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00217@rel:R25-11#b1e9874d
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#e9c169062026-09-30
  • R21-11rel:R21-11#0f8874872026-10-14
  • R22-11rel:R22-11#dfe163022026-10-14
  • R23-11rel:R23-11#776a29bc2026-10-14
  • R24-11rel:R24-11#b1e9874d2026-10-14
  • R25-11rel:R25-11#b1e9874d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 DecFloatMax [SWS_LOG_00218] Upstream: RS_LT_00046

constexpr Format DecFloatMax () noexcept;

Create a Format instance with Fmt::kDecFloat formatting hint and a precision that is sufficient for full round-trip safety. .

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00218
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00218@rel:R25-11#fadf6532
Content hash
fadf6532
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00218
Status: valid/auto-approved Version: rel:R25-11#af3ab7fa Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00218@rel:R25-11#af3ab7fa
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#26f3b7a62026-09-30
  • R21-11rel:R21-11#a04d1cdc2026-10-14
  • R22-11rel:R22-11#a28dd1d22026-10-14
  • R23-11rel:R23-11#b283a5e82026-10-14
  • R24-11rel:R24-11#af3ab7fa2026-10-14
  • R25-11rel:R25-11#af3ab7fa2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Dflt [SWS_LOG_00208] Upstream: RS_LT_00046

constexpr Format Dflt () noexcept;

Create a Format instance with Fmt::kDefault formatting hint. .

Create a Format instance with Fmt::kDefault formatting hint.

Validate requirementfunction Dflt [SWS_LOG_00208] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kDefault formatting hint.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Dflt [SWS_LOG_00208] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00208
Flag-ID
SWS_LOG_00208
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
3517598d5337aa08a12a4af5a3347c80908682f153c7f7400422e4fe5441cb8d
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00208
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00208@rel:R25-11#df9250ee
Content hash
df9250ee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00208
Status: valid/auto-approved Version: rel:R25-11#fe0445c2 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00208@rel:R25-11#fe0445c2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#ccd22b372026-09-30
  • R21-11rel:R21-11#d959e6cc2026-10-14
  • R22-11rel:R22-11#89aea3422026-10-14
  • R23-11rel:R23-11#a0a8eef32026-10-14
  • R24-11rel:R24-11#fe0445c22026-10-14
  • R25-11rel:R25-11#fe0445c22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 EngFloat [SWS_LOG_00219] Upstream: RS_LT_00046

constexpr Format EngFloat (std::uint16_t precision=6) noexcept;

Create a Format instance with Fmt::kEngFloat formatting hint and given precision.

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00219
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00219@rel:R25-11#862c8507
Content hash
862c8507
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00219
Status: valid/auto-approved Version: rel:R25-11#92184b52 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00219@rel:R25-11#92184b52
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#46ab37762026-09-30
  • R21-11rel:R21-11#55a6c05d2026-10-14
  • R22-11rel:R22-11#62d32cc02026-10-14
  • R23-11rel:R23-11#296172c52026-10-14
  • R24-11rel:R24-11#92184b522026-10-14
  • R25-11rel:R25-11#92184b522026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 EngFloatMax [SWS_LOG_00220] Upstream: RS_LT_00046

constexpr Format EngFloatMax () noexcept;

Create a Format instance with Fmt::kEngFloat formatting hint and a precision that is sufficient for full round-trip safety. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 728634d333ca 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

头文件 ara/log/logger.h 中的函数 ara::log::EngFloatMax() 同步创建类型为 Format 的实例 [SWS_LOG_00220]。返回的对象包含用于以工程计数法输出浮点数的格式化指示 Fmt::kEngFloat,以及足以进行完整往返转换(“full round-trip safety”)的精度 [SWS_LOG_00220]。该函数不需要参数。

错误处理

该函数带有说明符 noexcept,并被定义为异常安全(exception safe)[SWS_LOG_00220]。不存在特定错误码,既不抛出异常,也不向诊断或错误报告实体发送错误。该调用在常规运行中不会失败。

并发性与限制

规范将该函数标记为线程安全(thread-safe)[SWS_LOG_00220]。得益于标记为 constexpr,该调用可以在编译时进行求值。解释:由于规范未定义前置条件且该函数是无状态的,因此对于调用上下文应该既不存在限制,也不依赖于日志基础设施的事先初始化。 问题 Q-90c67bfad5b19641 (未决)

本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00220
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00220@rel:R25-11#a9fac62f
Content hash
a9fac62f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00220
Status: valid/auto-approved Version: rel:R25-11#b3a731e7 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00220@rel:R25-11#b3a731e7
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#22de84592026-09-30
  • R21-11rel:R21-11#943e147c2026-10-14
  • R22-11rel:R22-11#46e9ab922026-10-14
  • R23-11rel:R23-11#177b1ed22026-10-14
  • R24-11rel:R24-11#b3a731e72026-10-14
  • R25-11rel:R25-11#b3a731e72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Hex [SWS_LOG_00209] Upstream: RS_LT_00046

constexpr Format Hex () noexcept;

Create a Format instance with Fmt::kHex formatting hint and default precision. .

Create a Format instance with Fmt::kHex formatting hint and default precision.

Validate requirementfunction Hex [SWS_LOG_00209] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kHex formatting hint and default precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Hex [SWS_LOG_00209] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00209
Flag-ID
SWS_LOG_00209
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
1e59521c26fdc684aadbdfdbc4e4dd6319bf8d90b272ce2c11cac80a536661ba
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00209
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00209@rel:R25-11#a1d44722
Content hash
a1d44722
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00209
Status: valid/auto-approved Version: rel:R25-11#b8fc8150 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00209@rel:R25-11#b8fc8150
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#6feab0ab2026-09-30
  • R21-11rel:R21-11#748510ca2026-10-14
  • R22-11rel:R22-11#88e112532026-10-14
  • R23-11rel:R23-11#61593af12026-10-14
  • R24-11rel:R24-11#b8fc81502026-10-14
  • R25-11rel:R25-11#b8fc81502026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 Hex [SWS_LOG_00210] Upstream: RS_LT_00046

constexpr Format Hex (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kHex formatting hint and given precision.

Create a Format instance with Fmt::kHex formatting hint and given precision.

Validate requirementfunction Hex [SWS_LOG_00210] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kHex formatting hint and given precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Hex [SWS_LOG_00210] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00210
Flag-ID
SWS_LOG_00210
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
23dfb91cd5b219d9cc001b15a962ce1d61c421fcec5a7ee593cfeeabe6153a89
Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00210
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00210@rel:R25-11#2bbf9ef3
Content hash
2bbf9ef3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00210
Status: valid/auto-approved Version: rel:R25-11#e4bc509d Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00210@rel:R25-11#e4bc509d
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#d0361cd62026-09-30
  • R21-11rel:R21-11#53b1c08a2026-10-14
  • R22-11rel:R22-11#fc3eea052026-10-14
  • R23-11rel:R23-11#ddf4cb8b2026-10-14
  • R24-11rel:R24-11#e4bc509d2026-10-14
  • R25-11rel:R25-11#e4bc509d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 HexFloat [SWS_LOG_00221] Upstream: RS_LT_00046

constexpr Format HexFloat (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kHexFloat formatting hint and given precision.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2ffe78f5109c 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

辅助函数HexFloat用于根据[SWS_LOG_00221]创建用于以十六进制格式输出浮点数的格式化对象。它实例化一个类型为Format的对象,该对象带有着格式化提示Fmt::kHexFloat以及指定的精度。

用法与参数

该函数在命名空间ara::log中通过头文件#include "ara/log/logger.h"提供[SWS_LOG_00221]:

  • 参数:作为输入参数传递类型为std::uint16_t的precision,该参数指定所需的输出精度[SWS_LOG_00221]。
  • 返回值:设置了Fmt::kHexFloat前缀的已初始化Format对象[SWS_LOG_00221]。
  • 执行:通过标记为constexpr,格式化提示的构造可以同步在运行时进行,或在编译时完成[SWS_LOG_00221]。

错误处理与并发

签名被声明为带有noexcept,并视为完全异常安全(exception safe)[SWS_LOG_00221]。既不生成错误码,也不生成特定的错误消息。该函数被指定为线程安全(thread-safe),并且可以从任意上下文中并行调用而无需同步开销[SWS_LOG_00221]。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00221
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00221@rel:R25-11#12cf89de
Content hash
12cf89de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00221
Status: valid/auto-approved Version: rel:R25-11#07600d62 Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00221@rel:R25-11#07600d62
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#7e7a8dcd2026-09-30
  • R21-11rel:R21-11#a27bcb492026-10-14
  • R22-11rel:R22-11#ba63fd0a2026-10-14
  • R23-11rel:R23-11#3db789382026-10-14
  • R24-11rel:R24-11#07600d622026-10-14
  • R25-11rel:R25-11#07600d622026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 HexFloatMax [SWS_LOG_00222] Upstream: RS_LT_00046

constexpr Format HexFloatMax () noexcept;

Create a Format instance with Fmt::kHexFloat formatting hint and a precision that is sufficient for full round-trip safety. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 98728cb410cd 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

命名空间 ara::log 中的函数 HexFloatMax 用于创建用于格式化输出浮点值的 Format 实例 [SWS_LOG_00222]。它通过头文件 #include "ara/log/logger.h" 提供,且不接受任何调用参数 [SWS_LOG_00222]。作为同步返回值,提供一个带有格式化指示 Fmt::kHexFloat 且具有确保完整往返安全性精度的 Format 实例 [SWS_LOG_00222]。

签名被声明为 constexpr 以及 noexcept [SWS_LOG_00222]。这允许在编译时进行求值,并保证在执行时不会发生异常。该调用未指定特殊的错误状态、错误码或错误处理机制,因为格式对象的创建始终不会出错。

关于调用上下文和并发性,该函数被规范为异常安全(exception safe)和线程安全(thread-safe)[SWS_LOG_00222]。它不受顺序调用限制的约束,可以安全地从任意线程并发调用而无需额外同步。

本使用说明是基于 R25-11 的 AUTOSAR 规范自动生成的。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00222
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00222@rel:R25-11#9d56e292
Content hash
9d56e292
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00222
Status: valid/auto-approved Version: rel:R25-11#e092affc Versionshistorie & Revisions (2 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00222@rel:R25-11#e092affc
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#36563faa2026-09-30
  • R21-11rel:R21-11#497eee322026-10-14
  • R22-11rel:R22-11#593f25a62026-10-14
  • R23-11rel:R23-11#9705e6d62026-10-14
  • R24-11rel:R24-11#e092affc2026-10-14
  • R25-11rel:R25-11#e092affc2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement

函数 Oct [SWS_LOG_00213] Upstream: RS_LT_00046

constexpr Format Oct () noexcept;

Create a Format instance with Fmt::kOct formatting hint and default precision. .

Create a Format instance with Fmt::kOct formatting hint and default precision.

Validate requirementfunction Oct [SWS_LOG_00213] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kOct formatting hint and default precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Oct [SWS_LOG_00213] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00213
Flag-ID
SWS_LOG_00213
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
0d98563bf793e8e238cce1904ccafbad1c596aa5dc4338b08bf17b83b9545ec8
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 385124e3fb4e 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

函数ara::log::Oct()用作辅助函数,用于创建八进制系统下日志输出的格式化对象[SWS_LOG_00213]。它不接受任何参数,并同步返回类型为Format的对象,该对象配置有格式化提示Fmt::kOct以及默认精度[SWS_LOG_00213]。由于该函数被声明为constexpr,实例化可以在编译期进行。解释:返回的Format对象可能主要用于控制日志流中整数的格式化。 问题 Q-3f4fe5ac42de16cb (未决)

错误处理

该函数保证异常安全(exception safe),并被明确声明为noexcept[SWS_LOG_00213]。排除了发生运行时错误或抛出异常的情况。不存在特定错误代码,且不向 DET 或 DEM 发送通知。

并发性与限制

Oct()的调用完全是线程安全的(thread-safe)[SWS_LOG_00213]。由于不修改共享状态,该函数在可重入性或调用上下文方面不受任何限制,并可以从多个线程并行调用。

相互作用

该函数定义在命名空间ara::log中,并通过头文件#include "ara/log/logger.h"提供[SWS_LOG_00213]。除此无参数变体外,还存在重载版本Oct(std::uint16_t precision),可通过其指定不同的数位精度[SWS_LOG_00214]。

此使用说明基于 AUTOSAR 规范自动生成。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00213
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00213@rel:R25-11#8b7cf8d1
Content hash
8b7cf8d1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00213
Status: valid/auto-approved Version: rel:R25-11#9024a506 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00213@rel:R25-11#9024a506
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#2e694a6f2026-09-30
  • R21-11rel:R21-11#b9c60b292026-10-14
  • R22-11rel:R22-11#94d1c12f2026-10-14
  • R23-11rel:R23-11#f742fac82026-10-14
  • R24-11rel:R24-11#9024a5062026-10-14
  • R25-11rel:R25-11#9024a5062026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 Oct [SWS_LOG_00214] Upstream: RS_LT_00046

constexpr Format Oct (std::uint16_t precision) noexcept;

Create a Format instance with Fmt::kOct formatting hint and given precision.

Create a Format instance with Fmt::kOct formatting hint and given precision.

Validate requirementfunction Oct [SWS_LOG_00214] Upstream: RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Create a Format instance with Fmt::kOct formatting hint and given precision.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Oct [SWS_LOG_00214] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00214
Flag-ID
SWS_LOG_00214
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
91027575a070dd8d6404ff57bc499e91d130fd2a1f6278243d23e31d93188d52
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: acd78a533e1e 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

辅助函数ara::log::Oct通过命名空间ara::log中的头文件#include "ara/log/logger.h"提供[SWS_LOG_00214]。它用于创建带有格式化提示Fmt::kOct以及指定精度的类型Format的实例[SWS_LOG_00214]。作为输入参数,该函数接收无符号 16 位整数值precision,该值指定要应用的精度[SWS_LOG_00214]。该函数同步工作并立即返回创建的Format实例[SWS_LOG_00214]。

错误处理与并发

该函数被声明为noexcept,并被显式指定为异常安全(exception safe)[SWS_LOG_00214]。发生错误时,既不存在特定的错误码,也不存在通过 DET 或 DEM 的通知。关于调用上下文和并发性,该函数被归类为线程安全(thread-safe)[SWS_LOG_00214]。由于它还被定义为constexpr,因此格式化指令的创建可以在编译时完成[SWS_LOG_00214]。

相互作用

在模块log内部,该函数补充了相关的重载Oct()[SWS_LOG_00213]。无参变体构造具有默认精度(default precision)的Format实例[SWS_LOG_00213],而本函数则允许针对八进制格式化显式配置用户自定义的精度[SWS_LOG_00214]。

此文本由 AI 基于 AUTOSAR 规范生成。

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00214
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00214@rel:R25-11#f663cbb6
Content hash
f663cbb6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00214
Status: valid/auto-approved Version: rel:R25-11#fe5dd9cd Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00214@rel:R25-11#fe5dd9cd
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#75ca018b2026-09-30
  • R21-11rel:R21-11#5b0b42f02026-10-14
  • R22-11rel:R22-11#583e9be42026-10-14
  • R23-11rel:R23-11#5363bf9b2026-10-14
  • R24-11rel:R24-11#fe5dd9cd2026-10-14
  • R25-11rel:R25-11#fe5dd9cd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003, RS_LT_00050

void RegisterConnectionStateHandler (ConnectionStateHandler callback) noexcept;

Register a callback to be invoked whenever the connection state changes. Only a single function can be installed this way; if a callback was already registered before, only the newly registered one is used henceforth.

Register a callback to be invoked whenever the connection state changes. Only a single function can be installed this way; if a callback was already registered before, only the newly registered one is used henceforth.

Validate requirementfunction RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003 , RS_LT_00050

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Register a callback to be invoked whenever the connection state changes. Only a single function can be installed this way; if a callback was already registered before, only the newly registered one is used henceforth.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003 , RS_LT_00050
Requirement-ID
SWS_LOG_00205
Flag-ID
SWS_LOG_00205
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
7277e873d69d6aa3fee1974c126affd721a9e95eed8817c133036763ce975f0a
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 240d7b239d7a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

命名空间 ara::log 中的函数 RegisterConnectionStateHandler 用于注册一个应用程序端回调函数,该回调函数在每次连接状态发生变化时被调用 [SWS_LOG_00205]。它在头文件 ara/log/logger.h 中声明 [SWS_LOG_00205]。作为参数,传递类型为 ConnectionStateHandler 的函数对象 callback [SWS_LOG_00205],该类型被指定为 std::function<void(ClientState)> 的类型别名 [SWS_LOG_00265]。不存在返回值(void)[SWS_LOG_00205]。

关于生命周期和顺序,规定在任何时间点只能安装一个状态处理程序 [SWS_LOG_00205]。如果先前已注册了回调函数,则每次新的调用都会完全覆盖现有实例,从而自该时间点起仅执行最后传入的处理程序 [SWS_LOG_00205]。

该函数声明为 noexcept 并被指定为异常安全(“exception safe”)[SWS_LOG_00205]。规范中未定义特定错误代码、错误值或向错误或诊断监视器发送的通知 [SWS_LOG_00205]。

关于并发性,RegisterConnectionStateHandler 被明确归类为非线程安全(“not thread-safe”)[SWS_LOG_00205]。因此,不得在未受保护的情况下从多个线程并发调用注册,理想情况下应在初始化阶段进行。与此相反,类型别名 ConnectionStateHandler 被指定为线程安全 [SWS_LOG_00265]。解释:由此可能得出,已注册的回调在状态更改时可能会被内部日志运行时环境从并发上下文中调用。 问题 Q-59eae7980ba48666 (未决)

本文本由 AI 生成,并基于 AUTOSAR 版本 R25-11 的规范。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
callbacka callback that is invoked whenever the connection state has changed

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00205
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00205@rel:R25-11#b3da32ae
Content hash
b3da32ae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00205
Status: valid/auto-approved Version: rel:R25-11#00287738 Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/auto-approved
Reason
unchanged
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00205@rel:R25-11#00287738
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#7291780c2026-09-30
  • R21-11rel:R21-11#caf74f2d2026-10-14
  • R22-11rel:R22-11#e6cb4c452026-10-14
  • R23-11rel:R23-11#726f79442026-10-14
  • R24-11rel:R24-11#002877382026-10-14
  • R25-11rel:R25-11#002877382026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10toolinvalid/obsolete → valid/auto-approvedunchanged2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/auto-approvedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 operator<< [SWS_LOG_00063] Upstream: RS_LT_00003, RS_LT_00046

LogStream & operator<< (LogStream &out, LogLevel value) noexcept;

Appends LogLevel enum parameter as text into message.

Appends LogLevel enum parameter as text into message.

Validate requirementfunction operator<< [SWS_LOG_00063] Upstream: RS_LT_00003 , RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Appends LogLevel enum parameter as text into message.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function operator<< [SWS_LOG_00063] Upstream: RS_LT_00003 , RS_LT_00046
Requirement-ID
SWS_LOG_00063
Flag-ID
SWS_LOG_00063
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6bc8c09cd883f7923e5c13f681e2f5fdd534e9d735ddc43de857ea3377bf585f
Header-Datei#include "ara/log/log_stream.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
valueLogLevel enum parameter as text to be appended to the internal message buffer.

Parameter (in/out)

ParameterBeschreibung
outLogStream Object which is used to append the logged LogLevel (value) to

Rückgabewert

TypBeschreibung
LogStream &*this

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00063
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00063@rel:R25-11#b93e238c
Content hash
b93e238c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00063
Status: valid/ai-decided Version: rel:R25-11#79509eed Versionshistorie & Revisions (3 transitions, 8 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00063@rel:R25-11#79509eed
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1bc751442026-09-30
  • R19-11rel:R19-11#a96efa892026-10-14
  • R20-11rel:R20-11#792476692026-10-14
  • R21-11rel:R21-11#6cd8a2ba2026-10-14
  • R22-11rel:R22-11#48fbe4ca2026-10-14
  • R23-11rel:R23-11#3d69d02a2026-10-14
  • R24-11rel:R24-11#79509eed2026-10-14
  • R25-11rel:R25-11#79509eed2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/ai-decidedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 operator<< [SWS_LOG_00124] Upstream: RS_LT_00003, RS_LT_00046

LogStream & operator<< (LogStream &out, const core::ErrorCode &ec) noexcept;

Write a core::ErrorCode instance into the message. When output to the console, the ErrorCode shall be shown in an implementation-defined way as a String holding the result of ErrorCode:Domain().Name() (i.e. the ErrorDomain’s Shortname), and the integral error code number.

Write a core::ErrorCode instance into the message. When output to the console, the ErrorCode shall be shown in an implementation-defined way as a String holding the result of ErrorCode:Domain().Name() (i.e. the ErrorDomain’s Shortname), and the integral error code number.

Validate requirementfunction operator<< [SWS_LOG_00124] Upstream: RS_LT_00003 , RS_LT_00046

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Write a core::ErrorCode instance into the message. When output to the console, the ErrorCode shall be shown in an implementation-defined way as a String holding the result of ErrorCode:Domain().Name() (i.e. the ErrorDomain’s Shortname), and the integral error code number.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function operator<< [SWS_LOG_00124] Upstream: RS_LT_00003 , RS_LT_00046
Requirement-ID
SWS_LOG_00124
Flag-ID
SWS_LOG_00124
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
0f316c06320d52dca6899f694646e9d7e1725cfd7bcc8fb93aafbe20f6ed8f83
Header-Datei#include "ara/log/log_stream.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ecthe ErrorCode instance to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00124
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00124@rel:R25-11#526a52d2
Content hash
526a52d2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00124
Status: valid/ai-decided Version: rel:R25-11#d71a5d43 Versionshistorie & Revisions (3 transitions, 8 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00124@rel:R25-11#d71a5d43
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e838fc492026-09-30
  • R19-11rel:R19-11#de33574c2026-10-14
  • R20-11rel:R20-11#119288112026-10-14
  • R21-11rel:R21-11#119288112026-10-14
  • R22-11rel:R22-11#2c3385352026-10-14
  • R23-11rel:R23-11#d84ab8072026-10-14
  • R24-11rel:R24-11#d71a5d432026-10-14
  • R25-11rel:R25-11#d71a5d432026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/ai-decidedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 operator<< [SWS_LOG_00125] Upstream: RS_LT_00049

template <typename Rep, typename Period> LogStream & operator<< (LogStream &out, const std::chrono::duration< Rep, Period > &value) noexcept;

Write a std::chrono::duration instance into the message.

Write a std::chrono::duration instance into the message.

Validate requirementfunction operator<< [SWS_LOG_00125] Upstream: RS_LT_00049

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Write a std::chrono::duration instance into the message.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function operator<< [SWS_LOG_00125] Upstream: RS_LT_00049
Requirement-ID
SWS_LOG_00125
Flag-ID
SWS_LOG_00125
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
5eb27dff8e9b0b8305bc7b3baed36da88ba9dfecc183e8c7bd5a44856306cd60
Header-Datei#include "ara/log/log_stream.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Template-Parameter

ParameterBeschreibung
RepPeriodarithmetic type representing the number of ticks in this duration a std::ratio type representing the tick period of the clock, in seconds

Parameter (in)

ParameterBeschreibung
valuethe duration instance to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00125
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00125@rel:R25-11#b39dc89c
Content hash
b39dc89c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00125
Status: valid/ai-decided Version: rel:R25-11#bfad64a1 Versionshistorie & Revisions (3 transitions, 7 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00125@rel:R25-11#bfad64a1
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#cf4c80be2026-09-30
  • R20-11rel:R20-11#2d1b94c62026-10-14
  • R21-11rel:R21-11#92801c0d2026-10-14
  • R22-11rel:R22-11#46bc09342026-10-14
  • R23-11rel:R23-11#1748fc8b2026-10-14
  • R24-11rel:R24-11#b515455a2026-10-14
  • R25-11rel:R25-11#bfad64a12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/ai-decidedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 operator<< [SWS_LOG_00126] Upstream: RS_LT_00049

LogStream & operator<< (LogStream &out, const ara::core::Instance Specifier &value) noexcept;

Write a core::InstanceSpecifier into the message.

Write a core::InstanceSpecifier into the message.

Validate requirementfunction operator<< [SWS_LOG_00126] Upstream: RS_LT_00049

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Write a core::InstanceSpecifier into the message.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function operator<< [SWS_LOG_00126] Upstream: RS_LT_00049
Requirement-ID
SWS_LOG_00126
Flag-ID
SWS_LOG_00126
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
8c9c8133f67af2b0253ab695e0a0dfc6ec93f4c73c29706305573cc5e861d64a
Header-Datei#include "ara/log/log_stream.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
valuethe InstanceSpecifier to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00126
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00126@rel:R25-11#9e6ac5ef
Content hash
9e6ac5ef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00126
Status: valid/ai-decided Version: rel:R25-11#736881d9 Versionshistorie & Revisions (3 transitions, 7 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00126@rel:R25-11#736881d9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#85a739fb2026-09-30
  • R20-11rel:R20-11#054fc1a52026-10-14
  • R21-11rel:R21-11#054fc1a52026-10-14
  • R22-11rel:R22-11#d2255b092026-10-14
  • R23-11rel:R23-11#57305fa12026-10-14
  • R24-11rel:R24-11#736881d92026-10-14
  • R25-11rel:R25-11#736881d92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/ai-decidedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import

函数 operator<< [SWS_LOG_00127] Upstream: RS_LT_00049

LogStream & operator<< (LogStream &out, const void *value) noexcept;

Write a raw pointer into the message.

Write a raw pointer into the message.

Validate requirementfunction operator<< [SWS_LOG_00127] Upstream: RS_LT_00049

Was muss freigegeben werden?

Bestätige, dass der folgende Requirement-Text fachlich korrekt ist, zur genannten API gehört und ohne irreführende Importartefakte veröffentlicht werden kann.

Write a raw pointer into the message.

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function operator<< [SWS_LOG_00127] Upstream: RS_LT_00049
Requirement-ID
SWS_LOG_00127
Flag-ID
SWS_LOG_00127
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
5d3b4f75af5a5afc88557a6e603f5840d98b195e87666e1082374b3f7c9b007c
Header-Datei#include "ara/log/log_stream.h"
Scopenamespace ara::log
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
valueto log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_LOG_00127
Status
valid/ai-decided
Version
AUTOSAR/AP/record/SWS_LOG_00127@rel:R25-11#1cd5e134
Content hash
1cd5e134
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00127
Status: valid/ai-decided Version: rel:R25-11#f4f9fedf Versionshistorie & Revisions (3 transitions, 6 revision)
Current State
valid/ai-decided
Reason
campaign AI decision recorded
Campaign
2026-08-sws-log-pilot-after-tool-improvement
Active Version
AUTOSAR/AP/record/SWS_LOG_00127@rel:R25-11#f4f9fedf
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#cea806d42026-09-30
  • R21-11rel:R21-11#f3810ed22026-10-14
  • R22-11rel:R22-11#c77c26892026-10-14
  • R23-11rel:R23-11#cc3f17452026-10-14
  • R24-11rel:R24-11#f4f9fedf2026-10-14
  • R25-11rel:R25-11#f4f9fedf2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-10toolvalid/unversioned → invalid/obsoletespec update after tool improvement2026-08-sws-log-pilot-after-tool-improvement
2026-08-10aiinvalid/obsolete → valid/ai-decidedcampaign AI decision recorded2026-08-sws-log-pilot-after-tool-improvement
2026-08-10T14:00:00Zassistantnone → valid/ai-decidedÜberführung vorhandener Prosa-Beschreibung in requirement_text-Formatlegacy-desc-import