DEENESPTFRRUARHIKOZHNL

class 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

User GuideAI-GENERATED

Encapsulates a logging context for thread-safe recording of formatted or modeled log messages.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 766c8cb39e9a Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Encapsulates a logging context for thread-safe recording of formatted or modeled log messages.

The class ara::log::Logger represents a context for recording log messages within an application process via temporary streams or modeled message formats [SWS_LOG_00064]. Because the default constructor is deleted, creation and lifecycle management are handled entirely by the logging framework [SWS_LOG_00259]. Before the time-consuming preparation of message data, the currently active reporting severity can be queried. All interfaces of the class are specified as thread-safe and allow synchronization-free invocation from multiple threads.

Context

The class ara::log::Logger represents a logger context within an application process or process area in module log. Such a context encapsulates a specific context ID, an associated description, and a default log level. Application developers interact with logger instances to pass log messages to the logging framework either via stream objects such as LogStream [SWS_LOG_00064] or as structured, modeled messages [SWS_LOG_00204]. The instances act as intermediaries between application-internal threads and the logging backend.

LoggerKontext Application Application LoggingFramework Logging-Framework Application->LoggingFramework CreateLogger() Logger ara::log::Logger Application->Logger Log*() / IsEnabled() LogStream LogStream Application->LogStream operator<< LoggingFramework->Logger owns and creates Logger->LogStream erzeugt LoggingBackend Logging-Backend Logger->LoggingBackend registriert / leitet weiter

Context diagram: Integration of the logger between application, logging framework, and LogStream. Sources: [SWS_LOG_00064], [SWS_LOG_00259].

Lifecycle

The management of instances is subject to strict ownership by the logging framework. To ensure automatic registration with the logging backend upon creation and deregistration during application process shutdown, the default constructor is deleted [SWS_LOG_00259]. Applications must not and cannot instantiate Logger objects directly, but must instead use the creation functions ara::log::CreateLogger. Destruction and deallocation take place via the destructor [SWS_LOG_00260], which is controlled by the logging framework so that users do not have to manage the lifetime.

Regarding concurrency, all access methods are specified as thread-safe (thread-safe), including [SWS_LOG_00070], [SWS_LOG_00255], and [SWS_LOG_00260]. As a result, multiple concurrent threads can use the same logger context simultaneously without requiring additional synchronization mechanisms on the application side.

Usage Path

Typical usage of a logger includes checking the current configuration, adjusting thresholds, and issuing messages:

  • Checking output permission: Before costly preparations of log data, IsEnabled can be used to query whether a desired log level is actively reported [SWS_LOG_00070].
  • Configuration: The minimum reporting threshold of a logger instance can be reconfigured at runtime via SetThreshold [SWS_LOG_00255].
  • Stream-based logging: Via specific methods for individual severity levels—LogFatal [SWS_LOG_00064], LogError [SWS_LOG_00065], LogWarn [SWS_LOG_00066], LogInfo [SWS_LOG_00067], LogDebug [SWS_LOG_00068], or LogVerbose [SWS_LOG_00069]—as well as via the dynamic WithLevel [SWS_LOG_00131], a LogStream object is created. This object accepts data via the operator <<. Typically, the lifetime of the stream object ends with the semicolon of the statement [SWS_LOG_00064].
  • Modeled messages: Alternatively, typed and modeled messages can be passed directly with Log [SWS_LOG_00204] or, by specifying attributes, with LogWith [SWS_LOG_00133].
Typical sequence for stream loggingApplicationLoggerLogStreamIsEnabled(LogLevel::kInfo)trueoptAusgabe aktiviertLogInfo()ErzeugungLogStreamoperator<<(arg)

Sequence diagram: Typical sequence for threshold checking and stream-based logging. Sources: [SWS_LOG_00070], [SWS_LOG_00067], [SWS_LOG_00064].

Error Scenarios

The interfaces of the class are largely specified as noexcept and exception-safe (exception safe), which minimizes unexpected runtime interruptions [SWS_LOG_00070], [SWS_LOG_00255]. Nevertheless, formal error conditions and edge cases exist:

  • Incorrect model parameters: If Log is called with arguments that do not match the specification of the modeled message, the C++ program is ill-formed (ill-formed) and fails at compile time [SWS_LOG_00204].
  • Missing attribute properties: If the tuple for LogWith contains types that do not satisfy the required attribute criteria, the function does not participate in overload resolution [SWS_LOG_00133]. The exclusion is presumably performed via SFINAE or concepts. Question Q-e6179190587f11cb (open)
  • Exception safety during destruction: The destructor ~Logger is declared as not exception safe [SWS_LOG_00260]. This is likely attributable to the fact that errors may occur during deregistration at the logging backend that must not be propagated via exceptions. Question Q-4ac2bed8a8ffd85a (open)

This guide is based exclusively on the AUTOSAR specification for the log module in Adaptive Release R25-11.

Member map

Class diagram

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()

Detail view

Select an entry in the outline.

Constructors and destructor

Logger function

Default destructor is deleted.

Logger ()=delete;
~Logger function

Destructor .

~Logger ();

Methods

IsEnabled function

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 function

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 function

Same as Logger::LogFatal(). .

LogStream LogDebug () const noexcept;
LogError function

Same as Logger::LogFatal(). .

LogStream LogError () const noexcept;
LogFatal function

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

LogStream LogFatal () const noexcept;
LogInfo function

Same as Logger::LogFatal(). .

LogStream LogInfo () const noexcept;
LogVerbose function

Same as Logger::LogFatal(). .

LogStream LogVerbose () const noexcept;
LogWarn function

Same as Logger::LogFatal(). .

LogStream LogWarn () const noexcept;
LogWith function

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;
SetThreshold function

Set log level threshold for this Logger instance.

void SetThreshold (LogLevel threshold) noexcept;
WithLevel function

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

LogStream WithLevel (LogLevel logLevel) const noexcept;

Method documentation

function 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#da9f93dd
Content hash
da9f93dd
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

function 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#19c9984a
Content hash
19c9984a
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 01530793cc11 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function LogDebug of class ara::log::Logger serves to create log messages with error severity Debug and returns a correspondingly configured LogStream object for this purpose [SWS_LOG_00068]. The declaration takes place via header file #include "ara/log/logger.h" [SWS_LOG_00068].

For usage and semantics, the following specification characteristics are defined:

  • Call and return value: The method takes no input parameters and directly returns a LogStream object with Debug severity [SWS_LOG_00068]. The operational principle corresponds to method Logger::LogFatal() [SWS_LOG_00068].
  • Error handling: The signature is declared as noexcept and specified as exception-safe [SWS_LOG_00068]. No error messages or error codes are reported in the event of an error [SWS_LOG_00068].
  • Concurrency: The member function is classified as const (const) as well as explicitly as thread-safe [SWS_LOG_00068], so that parallel read accesses via the same logger instance are permissible.

This usage note was automatically generated based on 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#7fe80d2a
Content hash
7fe80d2a
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 97a3ba118d39 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method LogError of class ara::log::Logger serves to initiate a log entry with severity Error [SWS_LOG_00065]. The function is declared via the header file ara/log/logger.h and takes no parameters [SWS_LOG_00065].

Usage and return value

The synchronous call returns an object of type LogStream with severity Error [SWS_LOG_00065]. The behavior functionally corresponds to that of Logger::LogFatal() [SWS_LOG_00065]. Because LogError is declared as const, the call does not modify the state of the logger object and can also be executed on const instances [SWS_LOG_00065].

Concurrency and Exception Safety

Defined guarantees apply to the call context [SWS_LOG_00065]:

  • Thread Safety: The function is specified as thread-safe [SWS_LOG_00065]. Interpretation: Calls are thus likely to be permitted concurrently from multiple threads on the same instance without external synchronization. Question Q-e55d2b523c5cbcb3 (open)
  • Exception Safety: The method is declared as noexcept as well as exception-safe [SWS_LOG_00065]; it does not throw any exceptions at runtime.

Error handling

Specific error codes or notifications to DET or DEM are not provided for LogError [SWS_LOG_00065]. Error states during the call are ruled out by the guaranteed exception safety and the parameterless interface [SWS_LOG_00065].

This usage note was generated automatically based on specification 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#6659bb6a
Content hash
6659bb6a
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7531b48b97ac Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and lifetime

The method LogFatal of class ara::log::Logger (provided via header ara/log/logger.h) creates a LogStream object with severity Fatal ([SWS_LOG_00064]). The function takes no arguments and returns the stream directly. The returned LogStream object accepts log messages and parameters sequentially via stream operator << ([SWS_LOG_00064]). In regular application scenarios, the lifetime of the created stream is limited to a single statement and ends with the concluding semicolon after the last passed parameter ([SWS_LOG_00064]). To extend the lifetime of the stream object beyond this, it can be assigned to a named variable ([SWS_LOG_00064]).

Error Handling and Concurrency

The function is declared as noexcept and specified as exception-safe (exception safe) ([SWS_LOG_00064]). It throws no exceptions at runtime and uses no specific error codes. Regarding concurrency, the method is specified as const as well as fully thread-safe (thread-safe), which permits parallel calls on the same logger instance ([SWS_LOG_00064]).

Interaction

In interface and behavior, the method corresponds to the related logging methods for other severity levels within ara::log::Logger: LogError ([SWS_LOG_00065]), LogWarn ([SWS_LOG_00066]), LogInfo ([SWS_LOG_00067]), LogDebug ([SWS_LOG_00068]), and LogVerbose ([SWS_LOG_00069]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity 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#2db32a36
Content hash
2db32a36
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e56baa961e88 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function LogInfo of class ara::log::Logger ([SWS_LOG_00067]) is declared via header ara/log/logger.h. It serves to create a log message with severity Info, requires no input parameters, and synchronously returns an object of type LogStream ([SWS_LOG_00067]). According to the specification, the behavior corresponds to that of Logger::LogFatal() ([SWS_LOG_00067]), with the interpretation being that the functionality operates analogously and merely the severity classification is set to Info.

Regarding concurrency and call context, the method is declared as const and explicitly specified as thread-safe (thread-safe) ([SWS_LOG_00067]). As a result, LogInfo may be called in parallel from multiple threads on the same logger instance at any time without application-side synchronization mechanisms or locks being required.

In error handling, the function is designated with the identifier noexcept and classified as exception-safe (exception safe) ([SWS_LOG_00067]). Neither specific error codes are returned nor are DEM or DET error messages triggered ([SWS_LOG_00067]); an error case is not defined for this call.

In the requirements structure, the interface is directly allocated to the upstream requirements [RS_LT_00003] and [RS_LT_00049] ([SWS_LOG_00067]), which define the overarching guidelines for the logging and tracing subsystem.

This text was generated by an AI model based on AUTOSAR specification 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#945b2178
Content hash
945b2178
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9f5912e056db Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method LogVerbose() of class ara::log::Logger from header file #include "ara/log/logger.h" serves to create log outputs with the most detailed severity Verbose [SWS_LOG_00069]. No parameters are passed upon the call. The function synchronously returns a LogStream object that is explicitly initialized with the severity Verbose and is used to forward message contents [SWS_LOG_00069].

The specification indicates the behavior as identical to Logger::LogFatal() [SWS_LOG_00069]; as an interpretation, this is likely to mean that the buffering and provisioning of the stream follow the general log mechanics and differ only in the assigned severity. Question Q-522523e7a845dc3a (open) For error handling, the method is specified as noexcept as well as exception safe [SWS_LOG_00069]. Consequently, no exceptions occur, and specific error codes do not exist in the call context [SWS_LOG_00069].

With respect to concurrency and interface contracts, the following properties apply:

  • Thread Safety: The method is classified as thread-safe, so that concurrent calls via the same or different logger instances can be executed safely [SWS_LOG_00069].
  • Constness: The declaration as const guarantees that the call does not modify the internal state of the logger object [SWS_LOG_00069].

This usage note was created automatically based on the specification of 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#fff230f0
Content hash
fff230f0
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a2b7f630e254 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function LogWarn of class ara::log::Logger is provided via the header ara/log/logger.h [SWS_LOG_00066]. The call is performed without parameters on a logger instance via the signature LogStream LogWarn () const noexcept; [SWS_LOG_00066]. As a return value, the function synchronously returns an object of type LogStream with the severity classification Warn (Warn severity) [SWS_LOG_00066]. The functional behavior corresponds to the description of Logger::LogFatal() [SWS_LOG_00066]. Interpretation: The provided LogStream object is likely intended to assemble log messages of the warning level for further output. Question Q-02b18df759926020 (open)

Concurrency and error safety

Regarding call context and concurrency, the method is specified as thread-safe [SWS_LOG_00066]. It can therefore safely be called from multiple concurrent threads on the same instance. The function guarantees full exception safety (exception-safe) and is declared with noexcept [SWS_LOG_00066]. Specific error codes, error values, or feedback signals for runtime errors are not defined for this operation [SWS_LOG_00066]; interpretation: a failure of the return is likely ruled out in regular operation. Question Q-44b264cd97ff8159 (open)

This text was created by an AI and is based solely on specification data from 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#662766fc
Content hash
662766fc
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

function 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-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1483d6ced588 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The template method LogWith of class ara::log::Logger serves for the structured logging of messages using an identifier as well as associated attributes and arguments [SWS_LOG_00133]. It is included via header #include "ara/log/logger.h" and executed synchronously without a return value [SWS_LOG_00133].

The function accepts the following parameters [SWS_LOG_00133]:

  • attrs: a std::tuple with attributes of the message (types Attrs...),
  • msgId: an implementation-defined instance of type MsgId for identifying the message object,
  • params: variadic arguments (types Params...) that are added to the log entry.

Concurrency and Limitations

The function is specified as thread-safe and can be executed concurrently [SWS_LOG_00133]. It is declared with noexcept and classified as exception-safe (exception safe), which is why no C++ exceptions are thrown [SWS_LOG_00133]. Specific error codes or error messages are not defined.

For template instantiation, the following applies: The function does not participate in overload resolution if at least one of the types in Attrs... does not represent a permitted message attribute [SWS_LOG_00133]. Interpretation: Since the requirement for type Attr is marked with TBD in the specification, the concrete type check is likely to depend on the respective platform implementation. Question Q-30f5de483410d716 (open)

This usage note was generated automatically by an AI based on the AUTOSAR Adaptive specification 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#3b2d9421
Content hash
3b2d9421
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

function 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#6ef2064e
Content hash
6ef2064e
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

function 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#ca7a1d20
Content hash
ca7a1d20
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

function 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#54fc7b20
Content hash
54fc7b20
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

function ~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#7b839fb8
Content hash
7b839fb8
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