DEENESPTFRRUARHIKOZHNL

类 ara::log::Logger

[SWS_LOG_00172] Upstream: RS_LT_00003, RS_LT_00046

class Logger final {...};

Represents a logger context. The Logging framework defines contexts which can be seen as logger instances within one Application process or process scope. The contexts have the following properties: • Context ID • Description of the Context ID • Default log level A context will be automatically registered against the Logging backend during creation phase, as well as automatically deregistered during process shutdown phase. So the end user does not care for the objects life time. To ensure such housekeeping functionality, a strong ownership of the logger instances needs to be ensured towards the Logging framework. This means that the Application process are not supposed to call the Logger constructor themselves. The user is not allowed to create a Logger object by himself. Logger context needs to be created by one of the ara::log::CreateLogger functions.

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

用户指南人工智能生成

封装日志记录上下文,用于以线程安全的方式记录格式化或模型化日志消息。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 766c8cb39e9a 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

封装日志记录上下文,用于以线程安全的方式记录格式化或模型化日志消息。

类 ara::log::Logger 表示通过临时流或模型化消息格式在应用程序进程内记录日志消息的上下文 [SWS_LOG_00064]。由于默认构造函数已被删除,因此生命周期的创建和管理完全由日志记录框架负责 [SWS_LOG_00259]。在耗时准备消息数据之前,可以查询当前活动的报告级别。该类的所有接口均指定为线程安全,并允许从多个线程进行无同步调用。

上下文

类 ara::log::Logger 表示模块 log 中应用程序进程或进程区域内的 Logger 上下文。此类上下文封装了特定的上下文 ID、关联的描述以及默认日志级别。应用程序开发人员与 Logger 实例交互,以通过诸如 LogStream [SWS_LOG_00064] 等流对象或作为结构化的模型化消息将日志消息传递给日志记录框架 [SWS_LOG_00204]。这些实例充当应用程序内部线程与日志记录后端之间的中介。

LoggerKontext Application 应用 LoggingFramework Logging-Framework Application->LoggingFramework CreateLogger() Logger ara::log::Logger Application->Logger Log*() / IsEnabled() LogStream LogStream Application->LogStream operator<< LoggingFramework->Logger 拥有并创建 Logger->LogStream erzeugt LoggingBackend Logging-Backend Logger->LoggingBackend registriert / leitet weiter

上下文图:Logger 在应用程序、日志记录框架和 LogStream 之间的集成。来源:[SWS_LOG_00064]、[SWS_LOG_00259]。

生命周期

实例的管理受日志框架的严格所有权控制。为了确保在创建时自动向日志后端注册并在应用程序进程关闭时注销,默认构造函数已被删除 [SWS_LOG_00259]。应用程序不得且无法直接实例化 Logger 对象,而是必须使用创建函数 ara::log::CreateLogger。销毁和释放通过析构函数 [SWS_LOG_00260] 进行,该函数由日志框架控制,因此用户无需关心生命周期。

关于并发性,所有访问方法均被指定为线程安全(thread-safe),其中包括 [SWS_LOG_00070]、[SWS_LOG_00255] 和 [SWS_LOG_00260]。因此,多个并发线程可以同时使用相同的记录器上下文,而无需在应用程序端使用额外的同步机制。

使用路径

记录器的典型使用包括检查当前配置、调整阈值以及发送消息:

流式日志记录的典型流程应用LoggerLogStreamIsEnabled(LogLevel::kInfo)trueoptAusgabe aktiviertLogInfo()ErzeugungLogStreamoperator<<(arg)

时序图:阈值检查和基于流的日志记录的典型顺序。来源:[SWS_LOG_00070]、[SWS_LOG_00067]、[SWS_LOG_00064]。

错误场景

该类的接口在很大程度上被指定为 noexcept 和异常安全(exception safe),从而最大限度地减少了意外的运行时中断 [SWS_LOG_00070]、[SWS_LOG_00255]。尽管如此,仍存在形式上的错误条件和边界情况:

  • 模型参数不正确:如果使用与建模消息的规范不匹配的参数调用 Log,则 C++ 程序结构不正确(ill-formed),并在编译时失败 [SWS_LOG_00204]。
  • 缺少属性特性:如果用于 LogWith 的元组包含不符合所需属性条件的类型,则该函数不参与重载解析 [SWS_LOG_00133]。隐藏可能通过 SFINAE 或 Concepts 进行。 问题 Q-e6179190587f11cb (未决)
  • 析构时的异常安全性:析构函数 ~Logger 被声明为 not exception safe [SWS_LOG_00260]。这可能是因为在向日志后端注销时可能会发生错误,而这些错误不得通过异常传播。 问题 Q-4ac2bed8a8ffd85a (未决)

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

成员图

类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__log__Logger529 Logger + Logger() + ~Logger() + IsEnabled() + Log() + LogDebug() + LogError() + LogFatal() + LogInfo() + LogVerbose() + LogWarn() + LogWith() + SetThreshold() + WithLevel()

详细视图

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

构造函数和析构函数

Logger 函数

Default destructor is deleted.

Logger ()=delete;
~Logger 函数

Destructor .

~Logger ();

方法

IsEnabled 函数

Check current configured log reporting level. Applications may want to check the actual configured reporting log level of certain loggers before doing log data preparation that is runtime intensive.

bool IsEnabled (LogLevel logLevel) const noexcept;
Log 函数

Log a modeled message. If this function is called with an argument list that does not match the modeled message, the program is ill-formed.

template <typename MsgId, typename... Params> void Log (const MsgId &id, const Params &... args) noexcept;
LogDebug 函数

Same as Logger::LogFatal(). .

LogStream LogDebug () const noexcept;
LogError 函数

Same as Logger::LogFatal(). .

LogStream LogError () const noexcept;
LogFatal 函数

Creates a LogStream object. Returned object will accept arguments via the insert stream operator "@c <<".

LogStream LogFatal () const noexcept;
LogInfo 函数

Same as Logger::LogFatal(). .

LogStream LogInfo () const noexcept;
LogVerbose 函数

Same as Logger::LogFatal(). .

LogStream LogVerbose () const noexcept;
LogWarn 函数

Same as Logger::LogFatal(). .

LogStream LogWarn () const noexcept;
LogWith 函数

This function does not participate in overload resolution if any of Attrs... is not an "Attr" (TBD).

template <typename... Attrs, typename MsgId, typename... Params> void LogWith (const std::tuple< Attrs... > &attrs, const MsgId &msg Id, const Params &... params) noexcept;

Set log level threshold for this Logger instance.

void SetThreshold (LogLevel threshold) noexcept;
WithLevel 函数

Log message with a programmatically determined log level can be written.

LogStream WithLevel (LogLevel logLevel) const noexcept;

方法文档

函数 IsEnabled [SWS_LOG_00070] Upstream: RS_LT_00003, RS_LT_00045

bool IsEnabled (LogLevel logLevel) const noexcept;

Check current configured log reporting level. Applications may want to check the actual configured reporting log level of certain loggers before doing log data preparation that is runtime intensive.

Check current configured log reporting level. Applications may want to check the actual configured reporting log level of certain loggers before doing log data preparation that is runtime intensive.

Validate requirementfunction IsEnabled [SWS_LOG_00070] Upstream: RS_LT_00003 , RS_LT_00045

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.

Check current configured log reporting level. Applications may want to check the actual configured reporting log level of certain loggers before doing log data preparation that is runtime intensive.

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 IsEnabled [SWS_LOG_00070] Upstream: RS_LT_00003 , RS_LT_00045
Requirement-ID
SWS_LOG_00070
Flag-ID
SWS_LOG_00070
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
1e1bddc1fd7610a3343b90c0c12cf4975f804f8b299e6307b560b673ffbcf8a9
Header-Datei#include "ara/log/logger.h"
Scopeclass ara::log::Logger
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
logLevelThe to be checked log level.

Rückgabewert

TypBeschreibung
boolTrue if desired log level satisfies the configured reporting level.

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

Record
AUTOSAR/AP/record/SWS_LOG_00070
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00070@rel:R25-11#6701a76e
Content hash
6701a76e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00070
Status: valid/auto-approved Version: rel:R25-11#1af960db 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_00070@rel:R25-11#1af960db
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#da9f93dd2026-09-30
  • R19-11rel:R19-11#abfecdf22026-10-14
  • R20-11rel:R20-11#14a862062026-10-14
  • R21-11rel:R21-11#e75568f92026-10-14
  • R22-11rel:R22-11#5358cb642026-10-14
  • R23-11rel:R23-11#0e1f99732026-10-14
  • R24-11rel:R24-11#1af960db2026-10-14
  • R25-11rel:R25-11#1af960db2026-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

函数 Log [SWS_LOG_00204] Upstream: RS_LT_00003

template <typename MsgId, typename... Params> void Log (const MsgId &id, const Params &... args) noexcept;

Log a modeled message. If this function is called with an argument list that does not match the modeled message, the program is ill-formed.

Log a modeled message. If this function is called with an argument list that does not match the modeled message, the program is ill-formed.

Validate requirementfunction Log [SWS_LOG_00204] Upstream: RS_LT_00003

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.

Log a modeled message. If this function is called with an argument list that does not match the modeled message, the program is ill-formed.

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 Log [SWS_LOG_00204] Upstream: RS_LT_00003
Requirement-ID
SWS_LOG_00204
Flag-ID
SWS_LOG_00204
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
682287c04e8bbe0e88e1facc447fd5373ac8ce8782d00c7dcf5f621b383f1ebb
Header-Datei#include "ara/log/logger.h"
Scopeclass ara::log::Logger
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Template-Parameter

ParameterBeschreibung
MsgIdArgsthe type of the id parameter the types of the args parameters

Parameter (in)

ParameterBeschreibung
idan implementation-defined type identifying the message object
argsthe arguments to add to the message

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_LOG_00204
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00204@rel:R25-11#9da7d822
Content hash
9da7d822
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00204
Status: valid/auto-approved Version: rel:R25-11#58f80623 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_00204@rel:R25-11#58f80623
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#19c9984a2026-09-30
  • R20-11rel:R20-11#815a796b2026-10-14
  • R21-11rel:R21-11#815a796b2026-10-14
  • R22-11rel:R22-11#d9c6c0d72026-10-14
  • R23-11rel:R23-11#a795f3312026-10-14
  • R24-11rel:R24-11#44e63b542026-10-14
  • R25-11rel:R25-11#58f806232026-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

函数 LogDebug [SWS_LOG_00068] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogDebug () const noexcept;

Same as Logger::LogFatal(). .

Same as Logger::LogFatal().

Validate requirementfunction LogDebug [SWS_LOG_00068] Upstream: RS_LT_00003 , 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.

Same as Logger::LogFatal().

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 LogDebug [SWS_LOG_00068] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00068
Flag-ID
SWS_LOG_00068
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6b761cd6688140661851a8d157f5a01f25a462a2ad60287da8b3bb533eaf19db
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 01530793cc11 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::log::Logger 的成员函数 LogDebug 用于生成错误严重级别为 Debug 的日志消息,并为此返回相应配置的 LogStream 对象 [SWS_LOG_00068]。通过头文件 #include "ara/log/logger.h" 进行声明 [SWS_LOG_00068]。

关于用法和语义,定义了以下规范特性:

  • 调用与返回值:该方法不接受传入参数,并直接返回具有 Debug 严重级别的 LogStream 对象 [SWS_LOG_00068]。其工作方式与方法 Logger::LogFatal() 相同 [SWS_LOG_00068]。
  • 错误处理:该签名被声明为 noexcept,并被指定为异常安全(exception safe)[SWS_LOG_00068]。出错时不会生成任何错误消息或错误代码 [SWS_LOG_00068]。
  • 并发性:该成员函数被分类为常量(const)并显式分类为线程安全(thread-safe)[SWS_LOG_00068],因此允许通过同一 Logger 实例进行并发读取访问。

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

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Debug severity.

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

Record
AUTOSAR/AP/record/SWS_LOG_00068
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00068@rel:R25-11#fd3c24c3
Content hash
fd3c24c3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00068
Status: valid/auto-approved Version: rel:R25-11#35a0dc61 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_00068@rel:R25-11#35a0dc61
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7fe80d2a2026-09-30
  • R19-11rel:R19-11#7f41a7622026-10-14
  • R20-11rel:R20-11#073265842026-10-14
  • R21-11rel:R21-11#073265842026-10-14
  • R22-11rel:R22-11#287c12bf2026-10-14
  • R23-11rel:R23-11#7f8a19ae2026-10-14
  • R24-11rel:R24-11#35a0dc612026-10-14
  • R25-11rel:R25-11#35a0dc612026-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

函数 LogError [SWS_LOG_00065] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogError () const noexcept;

Same as Logger::LogFatal(). .

Same as Logger::LogFatal().

Validate requirementfunction LogError [SWS_LOG_00065] Upstream: RS_LT_00003 , 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.

Same as Logger::LogFatal().

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 LogError [SWS_LOG_00065] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00065
Flag-ID
SWS_LOG_00065
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6b761cd6688140661851a8d157f5a01f25a462a2ad60287da8b3bb533eaf19db
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 97a3ba118d39 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::log::Logger 的方法 LogError 用于发起严重级别为 Error 的日志条目 [SWS_LOG_00065]。该函数通过头文件 ara/log/logger.h 声明,且不接受任何参数 [SWS_LOG_00065]。

使用方法与返回值

同步调用返回一个严重级别为 Error 的类型为 LogStream 的对象 [SWS_LOG_00065]。该行为在功能上与 Logger::LogFatal() 的行为相对应 [SWS_LOG_00065]。由于 LogError 被声明为 const,因此调用不会修改记录器对象的状态,也可以在常量实例上执行 [SWS_LOG_00065]。

并发与异常安全性

以下保证适用于调用上下文 [SWS_LOG_00065]:

  • 线程安全性:该函数被指定为 thread-safe [SWS_LOG_00065]。解释:因此,想必可以无需外部同步从多个线程在同一实例上并发执行调用。 问题 Q-e55d2b523c5cbcb3 (未决)
  • 异常安全性:该方法被声明为 noexcept 以及 exception safe [SWS_LOG_00065];它在运行时不会触发异常。

错误处理

对于 LogError,未规定具体的错误码或向 DET 或 DEM 发送的通知 [SWS_LOG_00065]。通过保证的异常安全性和无参数接口,排除了调用时的错误状态 [SWS_LOG_00065]。

本使用说明基于规范 SWS_LOG_00065 自动生成。

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Error severity.

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

Record
AUTOSAR/AP/record/SWS_LOG_00065
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00065@rel:R25-11#5b153e0a
Content hash
5b153e0a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00065
Status: valid/auto-approved Version: rel:R25-11#0bab4023 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_00065@rel:R25-11#0bab4023
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6659bb6a2026-09-30
  • R19-11rel:R19-11#9d8dda862026-10-14
  • R20-11rel:R20-11#977413e12026-10-14
  • R21-11rel:R21-11#310f37c82026-10-14
  • R22-11rel:R22-11#09612dae2026-10-14
  • R23-11rel:R23-11#8b7cfd0c2026-10-14
  • R24-11rel:R24-11#0bab40232026-10-14
  • R25-11rel:R25-11#0bab40232026-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

函数 LogFatal [SWS_LOG_00064] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogFatal () const noexcept;

Creates a LogStream object. Returned object will accept arguments via the insert stream operator "@c <<".

Creates a LogStream object. Returned object will accept arguments via the insert stream operator "@c <<".

Validate requirementfunction LogFatal [SWS_LOG_00064] Upstream: RS_LT_00003 , 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.

Creates a LogStream object. Returned object will accept arguments via the insert stream operator "@c <<".

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 LogFatal [SWS_LOG_00064] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00064
Flag-ID
SWS_LOG_00064
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
9f595eed46fdb62ded69dd8892fec7d03f3949961e2c0496116f2417a93c7a14
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7531b48b97ac 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与生命周期

类 ara::log::Logger 的方法 LogFatal(通过头文件 ara/log/logger.h 提供)创建一个严重级别为 Fatal 的 LogStream 对象([SWS_LOG_00064])。该函数不接收任何参数并直接返回该流。返回的 LogStream 对象通过流运算符 << 顺序接收日志消息和参数([SWS_LOG_00064])。在常规应用场景中,所创建流的生命周期仅限于单个语句,并在最后一个传递的参数后面的结尾分号处结束([SWS_LOG_00064])。为了进一步延长流对象的生命周期,可以将其分配给具名变量([SWS_LOG_00064])。

错误处理与并发

该函数声明为 noexcept,并被指定为异常安全(exception safe)([SWS_LOG_00064])。它在运行时不抛出任何异常,也不使用特定的错误码。在并发方面,该方法被指定为 const 以及完全线程安全(thread-safe),从而允许通过同一 Logger 实例进行并行调用([SWS_LOG_00064])。

相互作用

该方法在接口和行为上与 ara::log::Logger 内部针对不同严重级别的相关日志记录方法一致:LogError([SWS_LOG_00065])、LogWarn([SWS_LOG_00066])、LogInfo([SWS_LOG_00067])、LogDebug([SWS_LOG_00068])以及 LogVerbose([SWS_LOG_00069])。

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

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

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Fatal severity.
Hinweise: In the normal usage scenario, the object’s life time of the created LogStream is scoped within one statement (ends with ; after last passed argument). If one wants to extend the LogStream object’s life time, the object might be assigned to a named variable. Refer to the LogStream class documentation for further details.

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

Record
AUTOSAR/AP/record/SWS_LOG_00064
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00064@rel:R25-11#e2596c24
Content hash
e2596c24
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00064
Status: valid/auto-approved Version: rel:R25-11#72f4032f 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_00064@rel:R25-11#72f4032f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2db32a362026-09-30
  • R19-11rel:R19-11#607741412026-10-14
  • R20-11rel:R20-11#ce8c37932026-10-14
  • R21-11rel:R21-11#ce8c37932026-10-14
  • R22-11rel:R22-11#17a9d1882026-10-14
  • R23-11rel:R23-11#106563eb2026-10-14
  • R24-11rel:R24-11#72f4032f2026-10-14
  • R25-11rel:R25-11#72f4032f2026-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

函数 LogInfo [SWS_LOG_00067] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogInfo () const noexcept;

Same as Logger::LogFatal(). .

Same as Logger::LogFatal().

Validate requirementfunction LogInfo [SWS_LOG_00067] Upstream: RS_LT_00003 , 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.

Same as Logger::LogFatal().

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 LogInfo [SWS_LOG_00067] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00067
Flag-ID
SWS_LOG_00067
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6b761cd6688140661851a8d157f5a01f25a462a2ad60287da8b3bb533eaf19db
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e56baa961e88 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::log::Logger 的成员函数 LogInfo([SWS_LOG_00067])通过头文件 ara/log/logger.h 声明。它用于创建严重级别为 Info 的日志消息,不需要传入参数,并同步返回一个类型为 LogStream 的对象([SWS_LOG_00067])。根据规范,其行为与 Logger::LogFatal()([SWS_LOG_00067])的行为相对应,其解释是其功能以类似方式工作,仅将严重级别分类固定为 Info。

关于并发性和调用上下文,该方法被声明为 const 并显式指定为线程安全(thread-safe)([SWS_LOG_00067])。因此,可以随时由多个线程在同一 Logger 实例上并行调用 LogInfo,而无需应用程序负责的同步机制或锁。

在错误处理方面,该函数带有标识符 noexcept 并被归类为异常安全(exception safe)([SWS_LOG_00067])。既不返回特定的错误码,也不触发 DEM 或 DET 错误消息([SWS_LOG_00067]);未为此调用定义错误情况。

在需求架构中,该接口直接分配给上游需求 [RS_LT_00003] 和 [RS_LT_00049]([SWS_LOG_00067]),这些需求定义了日志记录与跟踪子系统的上层指导方针。

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

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Info severity.

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

Record
AUTOSAR/AP/record/SWS_LOG_00067
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00067@rel:R25-11#c2d7fcc8
Content hash
c2d7fcc8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00067
Status: valid/auto-approved Version: rel:R25-11#029e8e2b 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_00067@rel:R25-11#029e8e2b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#945b21782026-09-30
  • R19-11rel:R19-11#472faa0d2026-10-14
  • R20-11rel:R20-11#f9ad32242026-10-14
  • R21-11rel:R21-11#f9ad32242026-10-14
  • R22-11rel:R22-11#bda08a362026-10-14
  • R23-11rel:R23-11#506836842026-10-14
  • R24-11rel:R24-11#029e8e2b2026-10-14
  • R25-11rel:R25-11#029e8e2b2026-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

函数 LogVerbose [SWS_LOG_00069] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogVerbose () const noexcept;

Same as Logger::LogFatal(). .

Same as Logger::LogFatal().

Validate requirementfunction LogVerbose [SWS_LOG_00069] Upstream: RS_LT_00003 , 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.

Same as Logger::LogFatal().

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 LogVerbose [SWS_LOG_00069] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00069
Flag-ID
SWS_LOG_00069
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6b761cd6688140661851a8d157f5a01f25a462a2ad60287da8b3bb533eaf19db
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9f5912e056db 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

来自头文件 #include "ara/log/logger.h" 的类 ara::log::Logger 的方法 LogVerbose() 用于生成具有最详细严重级别 Verbose 的日志输出 [SWS_LOG_00069]。调用时不传递任何参数。该函数同步返回一个 LogStream 对象,该对象显式使用严重级别 Verbose 初始化,并用于传递消息内容 [SWS_LOG_00069]。

该规范指出其行为与 Logger::LogFatal() 相同 [SWS_LOG_00069];作为解释,这可能意味着流的缓冲和提供遵循常规日志机制,仅分配的严重级别有所不同。 问题 Q-522523e7a845dc3a (未决)关于错误处理,该方法被指定为 noexcept 以及 exception safe [SWS_LOG_00069]。因此不会引发任何异常,且调用上下文中不存在特定的错误代码 [SWS_LOG_00069]。

关于并发性和接口契约,适用以下属性:

  • 线程安全性:该方法被分类为 thread-safe,因此可以通过相同或不同的 Logger 实例安全地执行并发调用 [SWS_LOG_00069]。
  • 常量性:声明为 const 保证了该调用不会更改 Logger 对象的内部状态 [SWS_LOG_00069]。

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

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Verbose severity.

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

Record
AUTOSAR/AP/record/SWS_LOG_00069
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00069@rel:R25-11#397c9ed5
Content hash
397c9ed5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00069
Status: valid/auto-approved Version: rel:R25-11#224cde58 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_00069@rel:R25-11#224cde58
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fff230f02026-09-30
  • R19-11rel:R19-11#9dae6f922026-10-14
  • R20-11rel:R20-11#dbef81e22026-10-14
  • R21-11rel:R21-11#dbef81e22026-10-14
  • R22-11rel:R22-11#3f05c0c12026-10-14
  • R23-11rel:R23-11#a1a41d642026-10-14
  • R24-11rel:R24-11#224cde582026-10-14
  • R25-11rel:R25-11#224cde582026-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

函数 LogWarn [SWS_LOG_00066] Upstream: RS_LT_00003, RS_LT_00049

LogStream LogWarn () const noexcept;

Same as Logger::LogFatal(). .

Same as Logger::LogFatal().

Validate requirementfunction LogWarn [SWS_LOG_00066] Upstream: RS_LT_00003 , 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.

Same as Logger::LogFatal().

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 LogWarn [SWS_LOG_00066] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00066
Flag-ID
SWS_LOG_00066
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
6b761cd6688140661851a8d157f5a01f25a462a2ad60287da8b3bb533eaf19db
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a2b7f630e254 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::log::Logger 的成员函数 LogWarn 通过头文件 ara/log/logger.h 提供 [SWS_LOG_00066]。该调用在 Logger 实例上无参数进行,签名形式为 LogStream LogWarn () const noexcept; [SWS_LOG_00066]。作为返回值,该函数同步返回一个严重级别分类为 Warn(Warn severity)的类型为 LogStream 的对象 [SWS_LOG_00066]。其功能行为与 Logger::LogFatal() 的描述相对应 [SWS_LOG_00066]。解释:提供的 LogStream 对象想必用于组装警告级别的日志消息以供进一步输出。 问题 Q-02b18df759926020 (未决)

并发性与错误安全性

关于调用上下文和并发性,该方法被指定为 thread-safe [SWS_LOG_00066]。因此,它可以从同一实例上的多个并发线程安全地调用。该函数保证完全的异常安全性(exception safe),并使用 noexcept 进行声明 [SWS_LOG_00066]。未为此操作定义特定的错误码、错误值或针对运行时错误的反馈信号 [SWS_LOG_00066];解释:在常规运行中,想必可以排除返回失败的情况。 问题 Q-44b264cd97ff8159 (未决)

本文本由 AI 创建,且完全基于 AUTOSAR R25-11 的规范数据。

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

Rückgabewert

TypBeschreibung
LogStreamLogStream object of Warn severity.

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

Record
AUTOSAR/AP/record/SWS_LOG_00066
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00066@rel:R25-11#68191851
Content hash
68191851
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00066
Status: valid/auto-approved Version: rel:R25-11#9358c691 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_00066@rel:R25-11#9358c691
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#662766fc2026-09-30
  • R19-11rel:R19-11#03c7fbf92026-10-14
  • R20-11rel:R20-11#76a8aeed2026-10-14
  • R21-11rel:R21-11#76a8aeed2026-10-14
  • R22-11rel:R22-11#18b12fe82026-10-14
  • R23-11rel:R23-11#7bd100f72026-10-14
  • R24-11rel:R24-11#a46364ad2026-10-14
  • R25-11rel:R25-11#9358c6912026-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

函数 LogWith [SWS_LOG_00133] Upstream: RS_LT_00003

template <typename... Attrs, typename MsgId, typename... Params> void LogWith (const std::tuple< Attrs... > &attrs, const MsgId &msg Id, const Params &... params) noexcept;

This function does not participate in overload resolution if any of Attrs... is not an "Attr" (TBD).

This function does not participate in overload resolution if any of Attrs.. is not an "Attr" (TBD).

Validate requirementfunction LogWith [SWS_LOG_00133] Upstream: RS_LT_00003

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.

This function does not participate in overload resolution if any of Attrs.. is not an "Attr" (TBD).

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 LogWith [SWS_LOG_00133] Upstream: RS_LT_00003
Requirement-ID
SWS_LOG_00133
Flag-ID
SWS_LOG_00133
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
a243b2c6e57f2f73f927a153f44f91bf1ae67a602c30125cc86c3eea679a6e42
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1483d6ced588 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类ara::log::Logger的模板方法LogWith用于根据标识符以及关联的属性和参数结构化地记录消息[SWS_LOG_00133]。它通过头文件#include "ara/log/logger.h"包含,并以同步方式执行且无返回值[SWS_LOG_00133]。

该函数接受以下参数[SWS_LOG_00133]:

  • attrs:包含消息属性的std::tuple(类型Attrs...),
  • msgId:类型为MsgId的实现定义实例,用于标识消息对象,
  • params:添加到日志条目中的可变参数(类型Params...)。

并发性与限制

该函数被指定为thread-safe,并可以并发执行[SWS_LOG_00133]。它声明带有noexcept,并归类为异常安全(exception safe),因此不会抛出 C++ 异常[SWS_LOG_00133]。未定义特定错误代码或错误消息。

对于模板实例化,规则如下:如果Attrs...中至少有一个类型不是允许的消息属性,则该函数不参与重载解析[SWS_LOG_00133]。解释:由于规范中对类型Attr的要求标记为 TBD,具体类型检查可能取决于具体的平台实现。 问题 Q-30f5de483410d716 (未决)

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

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

Template-Parameter

ParameterBeschreibung
AttrsMsgIdParamsthe types of attrs the type of msgId the types of the params

Parameter (in)

ParameterBeschreibung
attrsa std::tuple containing attributes of the message
msgIdan implementation-defined instance of type MsgId identifying the message object
paramsthe arguments to add to the message

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_LOG_00133
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00133@rel:R25-11#89c9e108
Content hash
89c9e108
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00133
Status: valid/auto-approved Version: rel:R25-11#e296e318 Versionshistorie & Revisions (3 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_00133@rel:R25-11#e296e318
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#3b2d94212026-09-30
  • R22-11rel:R22-11#20cc37b62026-10-14
  • R23-11rel:R23-11#b1a9eb922026-10-14
  • R24-11rel:R24-11#e296e3182026-10-14
  • R25-11rel:R25-11#e296e3182026-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

函数 Logger [SWS_LOG_00259] Upstream: RS_LT_00003, RS_LT_00046

Logger ()=delete;

Default destructor is deleted.

Header-Datei#include "ara/log/logger.h"
Scopeclass ara::log::Logger

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

Record
AUTOSAR/AP/record/SWS_LOG_00259
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00259@rel:R25-11#d2b3cbb2
Content hash
d2b3cbb2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00259
Status: valid/auto-approved Version: rel:R25-11#ba24b971 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_00259@rel:R25-11#ba24b971
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6ef2064e2026-09-30
  • R24-11rel:R24-11#ba24b9712026-10-14
  • R25-11rel:R25-11#ba24b9712026-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

函数 SetThreshold [SWS_LOG_00255] Upstream: RS_LT_00049

void SetThreshold (LogLevel threshold) noexcept;

Set log level threshold for this Logger instance.

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

Parameter (in)

ParameterBeschreibung
thresholdthe new threshold

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_LOG_00255
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00255@rel:R25-11#3d920743
Content hash
3d920743
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00255
Status: valid/auto-approved Version: rel:R25-11#938c1d1e 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_00255@rel:R25-11#938c1d1e
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#ca7a1d202026-09-30
  • R22-11rel:R22-11#4794419f2026-10-14
  • R23-11rel:R23-11#f81d87aa2026-10-14
  • R24-11rel:R24-11#3c712fb42026-10-14
  • R25-11rel:R25-11#938c1d1e2026-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

函数 WithLevel [SWS_LOG_00131] Upstream: RS_LT_00003, RS_LT_00049

LogStream WithLevel (LogLevel logLevel) const noexcept;

Log message with a programmatically determined log level can be written.

Log message with a programmatically determined log level can be written.

Validate requirementfunction WithLevel [SWS_LOG_00131] Upstream: RS_LT_00003 , 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.

Log message with a programmatically determined log level can be written.

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 WithLevel [SWS_LOG_00131] Upstream: RS_LT_00003 , RS_LT_00049
Requirement-ID
SWS_LOG_00131
Flag-ID
SWS_LOG_00131
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
533885ce9a5d6d6f3bf7e754fa1f61a06e02ea3c245c387b83fdbdd73a2c6610
Header-Datei#include "ara/log/logger.h"
Scopeclass ara::log::Logger
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
logLevelthe log level to use for this LogStream instance

Rückgabewert

TypBeschreibung
LogStreama new LogStream instance with the given log level

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

Record
AUTOSAR/AP/record/SWS_LOG_00131
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00131@rel:R25-11#ff973831
Content hash
ff973831
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00131
Status: valid/auto-approved Version: rel:R25-11#1d0dd1d6 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_00131@rel:R25-11#1d0dd1d6
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#54fc7b202026-09-30
  • R20-11rel:R20-11#3cc4e6592026-10-14
  • R21-11rel:R21-11#3cc4e6592026-10-14
  • R22-11rel:R22-11#402b19352026-10-14
  • R23-11rel:R23-11#4af9bcd92026-10-14
  • R24-11rel:R24-11#1d0dd1d62026-10-14
  • R25-11rel:R25-11#1d0dd1d62026-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

函数 ~Logger [SWS_LOG_00260] Upstream: RS_LT_00003, RS_LT_00046

~Logger ();

Destructor .

Header-Datei#include "ara/log/logger.h"
Scopeclass ara::log::Logger
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_LOG_00260
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00260@rel:R25-11#7ebfe657
Content hash
7ebfe657
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00260
Status: valid/auto-approved Version: rel:R25-11#1cf92e85 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_00260@rel:R25-11#1cf92e85
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7b839fb82026-09-30
  • R24-11rel:R24-11#1cf92e852026-10-14
  • R25-11rel:R25-11#1cf92e852026-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