DEENESPTFRRUARHIKOZHNL

नेमस्पेस ara::log

उपयोगकर्ता गाइडएआई जनित

लॉगिंग संदर्भों, स्वरूपित संदेश धाराओं के निर्माण और क्लाइंट स्थिति निगरानी को सक्षम बनाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: aad9146dd3fe उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

लॉगिंग संदर्भों, स्वरूपित संदेश धाराओं के निर्माण और क्लाइंट स्थिति निगरानी को सक्षम बनाता है।

नेमस्पेस ara::log संदर्भ लॉगर्स का प्रबंधन करके और DLT बैक-एंड या कंसोल जैसे सिंक पर संदेश धाराओं को टाइप किए गए रूप में आउटपुट करके अनुकूली लॉगिंग सेवाएं प्रदान करता है [SWS_LOG_00021]। अनुप्रयोग फ़ैक्टरी फ़ंक्शंस के माध्यम से लॉगर प्राप्त करते हैं, तर्क रैपर के माध्यम से स्वरूपित पेलोड तैयार करते हैं और थ्रेड-सुरक्षित तरीके से लॉग संदेशों में डेटा फीड करते हैं। एक महत्वपूर्ण बाध्यता के रूप में, सभी लॉगर इंस्टेंस का स्वामित्व फ्रेमवर्क के पास ही रहता है, जबकि कनेक्शन स्थिति हैंडलर का पंजीकरण स्पष्ट रूप से थ्रेड-सुरक्षित नहीं है [SWS_LOG_00205]।

संदर्भ

नेमस्पेस ara::log अनुकूली अनुप्रयोगों के लिए केंद्रीय लॉगिंग अवसंरचना प्रदान करता है। इसकी मुख्य जिम्मेदारी में क्लास Logger के माध्यम से लॉगिंग संदर्भों का प्रबंधन, LogStream के माध्यम से लॉग संदेशों का संरचित निर्माण, साथ ही Argument और Format के माध्यम से स्वरूपित पेलोड का टाइप किया गया स्थानांतरण शामिल है। फ्रेमवर्क अनुप्रयोग-पक्षीय लॉग कॉल्स और गंतव्य सिंक के बीच एक कड़ी के रूप में कार्य करता है: DLT बैक-एंड (Diagnostic Log and Trace) प्राथमिक सिंक के रूप में कार्य करता है, जिसकी कनेक्टिविटी स्थिति को इनमिरेशन ClientState द्वारा दर्शाया जाता है [SWS_LOG_00098]। यदि कोई मॉडल उपलब्ध नहीं है, तो डिफ़ॉल्ट रूप से कंसोल सिंक के रूप में कार्य करता है [SWS_LOG_00021]। बाहरी समकक्षों के स्थिति परिवर्तनों की निगरानी प्रकार ConnectionStateHandler के कॉलबैक फ़ंक्शंस के माध्यम से की जा सकती है [SWS_LOG_00265]।

LogKontext Anwendung Anwendung LoggingFramework LoggingFramework Anwendung->LoggingFramework nutzt API DltBackEnd DltBackEnd LoggingFramework->DltBackEnd लॉग संदेश प्रेषित करता है Konsole Konsole LoggingFramework->Konsole Fallback-Ausgabe RemoteClient RemoteClient DltBackEnd->RemoteClient Zustandsmeldung

संदर्भ आरेख: अनुप्रयोग, कंसोल, DLT बैक-एंड और बाहरी क्लाइंट के बीच लॉगिंग फ्रेमवर्क के इंटरैक्शन भागीदार। स्रोत: [SWS_LOG_00021], [SWS_LOG_00098], [SWS_LOG_00205]।

जीवनचक्र

Logger के इंस्टेंस अनुप्रयोग द्वारा सीधे निर्मित नहीं किए जाते हैं, बल्कि फ़ैक्टरी फ़ंक्शंस CreateLogger द्वारा इंस्टैंसिएट किए जाते हैं और लॉगिंग फ्रेमवर्क में पंजीकृत होते हैं [SWS_LOG_00021], [SWS_LOG_00263]। स्वामित्व संबंध स्पष्ट रूप से परिभाषित हैं: स्वामित्व पूरी तरह से लॉगिंग फ्रेमवर्क के पास रहता है (“Ownership stays within the Logging framework”), जो कॉलर को संदर्भ (Logger&) जारी करता है [SWS_LOG_00021]। वैकल्पिक रूप से, निर्माण ara::core::InstanceSpecifier के आधार पर मॉडल-आधारित हो सकता है [SWS_LOG_00256]। Interpretation: चूंकि फ्रेमवर्क स्वामित्व बनाए रखता है, इसलिए पंजीकृत लॉगर्स का जीवनकाल मूल प्रक्रिया से बंधा होना चाहिए। प्रश्न Q-4b81e462cf2e43b1 (खुला)

समवर्ती के संबंध में, CreateLogger के माध्यम से लॉगर्स का निर्माण थ्रेड-सुरक्षित निर्दिष्ट है [SWS_LOG_00021]। इसके विपरीत, RegisterConnectionStateHandler के माध्यम से कनेक्शन स्थिति हैंडलर्स का पंजीकरण स्पष्ट रूप से थ्रेड-सुरक्षित नहीं है (“not thread-safe”) [SWS_LOG_00205]; इसलिए यह आमतौर पर समवर्ती गतिविधियों की शुरुआत से पहले आरंभीकरण चरण के दौरान होना चाहिए। इसके अलावा, एक समय में केवल एक ही हैंडलर सक्रिय हो सकता है; नया पंजीकरण पिछले कॉलबैक को तुरंत प्रतिस्थापित कर देता है [SWS_LOG_00205]। बाहरी समकक्षों का कनेक्शन जीवनचक्र चरणों kUnknown (DLT बैक-एंड अभी सक्रिय नहीं है), kNotConnected और kConnected से होकर गुजरता है [SWS_LOG_00098]।

उपयोग पथ

नियमित प्रक्रिया में निगरानी का कॉन्फ़िगरेशन, लॉगर प्राप्त करना और स्वरूपित संदेश आउटपुट शामिल है:

  • RegisterConnectionStateHandler का उपयोग करके कनेक्शन कॉलबैक का पंजीकरण [SWS_LOG_00205]।
  • एक संदर्भ ID, एक विवरण और वैकल्पिक रूप से LogLevel से एक डिफ़ॉल्ट गंभीरता स्तर (उदा. kWarn या kInfo) निर्दिष्ट करके CreateLogger के माध्यम से Logger संदर्भ प्राप्त करना [SWS_LOG_00018], [SWS_LOG_00021]।
  • पहचानकर्ता, इकाई और फ़ॉर्मेटिंग संकेतों के साथ Arg का उपयोग करके संरचित तर्कों का निर्माण [SWS_LOG_00201]। इसके लिए सहायक फ़ंक्शन जैसे Dflt [SWS_LOG_00208], पूर्णांक प्रारूप जैसे Dec [SWS_LOG_00211], Hex [SWS_LOG_00209], Bin [SWS_LOG_00215] और Oct [SWS_LOG_00213], साथ ही फ़्लोटिंग-पॉइंट प्रारूप जैसे DecFloat [SWS_LOG_00217], EngFloat [SWS_LOG_00219], HexFloat [SWS_LOG_00221] या AutoFloat [SWS_LOG_00223] उपलब्ध हैं, जो Fmt के विनिर्दिष्टकर्ताओं को समाहित करते हैं [SWS_LOG_00206]।
  • ओवरलोड किए गए ऑपरेटरों operator<< के माध्यम से LogStream में पेलोड स्थानांतरित करना, अन्य बातों के अलावा LogLevel [SWS_LOG_00063], ara::core::ErrorCode [SWS_LOG_00124], std::chrono::duration [SWS_LOG_00125], ara::core::InstanceSpecifier [SWS_LOG_00126] और पॉइंटर्स const void* [SWS_LOG_00127] के लिए।
ara::log नेमस्पेस में प्रारंभीकरण और लॉगिंगएप्लिकेशनara::logLogStreamUse Case: कॉन्फ़िगरेशन और इनिशियलाइज़ेशनRegisterConnectionStateHandler(callback)CreateLogger("ctx", "desc", LogLevel::kInfo)Logger&Use Case: तर्क तैयारी और आउटपुटArg(val, "wert", "ms", Hex())Argument<T>operator<<(out, ec)LogStream&

अनुक्रम आरेख: आरंभीकरण, लॉगर्स के निर्माण और LogStream के माध्यम से स्वरूपित डेटा के आउटपुट के दौरान विशिष्ट इंटरैक्शन अनुक्रम। स्रोत: [SWS_LOG_00021], [SWS_LOG_00063], [SWS_LOG_00124], [SWS_LOG_00201], [SWS_LOG_00205]।

त्रुटि परिदृश्य

नेमस्पेस के फ़ंक्शंस बड़े पैमाने पर noexcept के साथ घोषित किए गए हैं और नो-थ्रो गारंटी प्रदान करते हैं, लेकिन वे सख्त पूर्वशर्तों और उल्लंघन नियमों के अधीन हैं:

  • मेनिफ़ेस्ट उल्लंघन: CreateLogger(const ara::core::InstanceSpecifier&) के माध्यम से मॉडल-आधारित लॉगर बनाते समय, विशिष्ट रनटाइम उल्लंघन ट्रिगर हो सकते हैं: InstanceSpecifierMappingIntegrityViolation (Specifier को मॉडल में हल नहीं किया जा सकता है या यह PortPrototype को संदर्भित नहीं करता है), PortInterfaceMappingViolation (मैपिंग प्रकार अपेक्षित PortInterface से मेल नहीं खाता है), ProcessMappingViolation (कोई उपयुक्त प्रक्रिया नहीं मिली) और InstanceSpecifierAlreadyInUseViolation (Specifier पहले से ही प्रक्रिया में उपयोग में है) [SWS_LOG_00256]।
  • अमान्य तर्क टाइपिंग: Arg का कॉल वाक्यविन्यास की दृष्टि से अमान्य (“ill-formed”) है यदि प्रकार T न तो अंकगणितीय प्रकार है और न ही bool है, और न ही इसे ara::core::StringView में और न ही ara::core::Span<const ara::core::Byte> में परिवर्तित किया जा सकता है। इसी तरह, स्ट्रिंग्स, बाइट स्पैन या बूलियन प्रकारों के मामले में nullptr से भिन्न इकाई पाठ unit पास करने पर त्रुटि होती है [SWS_LOG_00201]।
  • त्रुटि प्रदर्शन: कंसोल पर core::ErrorCode इंस्टेंस का आउटपुट करते समय, त्रुटि कोड को कार्यान्वयन-विशिष्ट तरीके से स्वरूपित किया जाता है, जिसमें डोमेन नाम (ErrorCode::Domain().Name()) और अभिन्न त्रुटि संख्या शामिल होनी चाहिए [SWS_LOG_00124]।

यह मार्गदर्शिका Adaptive Platform रिलीज़ R25-11 में log मॉड्यूल के विनिर्देश पर आधारित है।

विषय मानचित्र

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

क्लास आरेख

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

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

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

Logger-Kontext

Logger क्लास

Represents a logger context

CreateLogger फ़ंक्शन 3

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

ओवरलोड CreateLogger 3
Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription, LogLevel ctxDefLogLevel) noexcept; SWS_LOG_00021
Logger & CreateLogger (const ara::core::InstanceSpecifier &is) noexcept; SWS_LOG_00256
Logger & CreateLogger (ara::core::StringView ctxId, ara::core::String View ctxDescription) noexcept; SWS_LOG_00263
RegisterConnectionStateHandler फ़ंक्शन

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

void RegisterConnectionStateHandler (ConnectionStateHandler callback) noexcept;
ClientState एन्यूमरेशन

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

enum class ClientState : std::int8_t {...};
LogLevel एन्यूमरेशन

List of possible severity levels .

enum class LogLevel : std::uint8_t {...};
ConnectionStateHandler टाइप उपनाम

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

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

Nachrichtenaufbau

Argument क्लास

Wrapper type for holding a payload argument with its attributes

LogStream क्लास

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

इनपुट/आउटपुट << 5
LogStream & operator<< (LogStream &out, LogLevel value) noexcept; SWS_LOG_00063
LogStream & operator<< (LogStream &out, const core::ErrorCode &ec) noexcept; SWS_LOG_00124
template <typename Rep, typename Period> LogStream & operator<< (LogStream &out, const std::chrono::duration< Rep, Period > &value) noexcept; SWS_LOG_00125
LogStream & operator<< (LogStream &out, const ara::core::Instance Specifier &value) noexcept; SWS_LOG_00126
LogStream & operator<< (LogStream &out, const void *value) noexcept; SWS_LOG_00127
Arg फ़ंक्शन

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

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

Zahlenformate

Format क्लास

A type holding a formatting hint

AutoFloat फ़ंक्शन

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

constexpr Format AutoFloat (std::uint16_t precision=6) noexcept;
AutoFloatMax फ़ंक्शन

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

constexpr Format AutoFloatMax () noexcept;
Bin फ़ंक्शन 2

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

ओवरलोड Bin 2
constexpr Format Bin () noexcept; SWS_LOG_00215
constexpr Format Bin (std::uint16_t precision) noexcept; SWS_LOG_00216
Dec फ़ंक्शन 2

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

ओवरलोड Dec 2
constexpr Format Dec () noexcept; SWS_LOG_00211
constexpr Format Dec (std::uint16_t precision) noexcept; SWS_LOG_00212
DecFloat फ़ंक्शन

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

constexpr Format DecFloat (std::uint16_t precision=6) noexcept;
DecFloatMax फ़ंक्शन

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

constexpr Format DecFloatMax () noexcept;
Dflt फ़ंक्शन

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

constexpr Format Dflt () noexcept;
EngFloat फ़ंक्शन

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

constexpr Format EngFloat (std::uint16_t precision=6) noexcept;
EngFloatMax फ़ंक्शन

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

constexpr Format EngFloatMax () noexcept;
Hex फ़ंक्शन 2

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

ओवरलोड Hex 2
constexpr Format Hex () noexcept; SWS_LOG_00209
constexpr Format Hex (std::uint16_t precision) noexcept; SWS_LOG_00210
HexFloat फ़ंक्शन

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

constexpr Format HexFloat (std::uint16_t precision) noexcept;
HexFloatMax फ़ंक्शन

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

constexpr Format HexFloatMax () noexcept;
Oct फ़ंक्शन 2

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

ओवरलोड Oct 2
constexpr Format Oct () noexcept; SWS_LOG_00213
constexpr Format Oct (std::uint16_t precision) noexcept; SWS_LOG_00214
Fmt एन्यूमरेशन

Format specifiers for log message arguments .

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

एन्यूमरेशन

एन्यूमरेशन ClientState [SWS_LOG_00098] Upstream: RS_LT_00003, RS_LT_00050

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

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

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

Werte

EnumeratorBeschreibung
kUnknown= -1 DLT back-end not up and running yet, state cannot be determined.
kNotConnectedNo remote client detected.
kConnectedRemote client is connected.
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: b76d16a569dc उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

एन्यूमरेशन ara::log::ClientState DLT बैकएंड से किसी बाहरी क्लाइंट की वर्तमान कनेक्शन स्थिति को मैप करता है [SWS_LOG_00098]। यह डेटा प्रकार std::int8_t पर आधारित है और हेडर फ़ाइल #include "ara/log/common.h" अथवा फ़ॉरवर्डिंग हेडर #include "ara/log/log_fwd.h" के माध्यम से शामिल किया जाता है [SWS_LOG_00098]।

अवस्थाएँ और सिमेंटिक्स

यह एन्यूमरेशन तीन असतत (discrete) कनेक्शन अवस्थाओं को परिभाषित करता है [SWS_LOG_00098]:

  • kUnknown (-1): DLT बैकएंड अभी परिचालन के लिए तैयार नहीं है; इस समय वास्तविक कनेक्शन स्थिति निर्धारित नहीं की जा सकती है [SWS_LOG_00098]।
  • kNotConnected: कोई बाहरी क्लाइंट नहीं पहचाना गया [SWS_LOG_00098]।
  • kConnected: एक रिमोट क्लाइंट सफलतापूर्वक कनेक्ट हो गया है [SWS_LOG_00098]।

परस्पर क्रिया और समवर्तिता (Concurrency)

यह एन्यूमरेशन मुख्य रूप से फ़ंक्शन कॉलबैक ConnectionStateHandler (std::function<void(ClientState)> के रूप में परिभाषित) के लिए एक पासिंग पैरामीटर के रूप में कार्य करता है, जो ara::log::RegisterConnectionStateHandler के माध्यम से पंजीकृत होता है [SWS_LOG_00265]। यह हैंडलर थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है [SWS_LOG_00265]। व्याख्या: पंजीकृत हैंडलर संभवतः एसिंक्रोनस रूप से कॉल किए जा सकते हैं जैसे ही DLT बैकएंड बाहरी क्लाइंट के स्थिति परिवर्तनों का पता लगाता है। प्रश्न Q-b78ef73772a658a2 (खुला)

यह पाठ AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

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

एन्यूमरेशन Fmt [SWS_LOG_00206] Upstream: RS_LT_00046

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

Format specifiers for log message arguments .

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

Werte

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

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

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

एन्यूमरेशन LogLevel [SWS_LOG_00018] Upstream: RS_LT_00003, RS_LT_00049

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

List of possible severity levels .

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

Werte

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

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

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

टाइप उपनाम

टाइप उपनाम ConnectionStateHandler [SWS_LOG_00265] Upstream: RS_LT_00003, RS_LT_00050

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

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

Header-Datei#include "ara/log/logger.h"
Scopenamespace ara::log
SymbolConnectionStateHandler
Thread-Sicherheitthread-safe
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 61bab347af38 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

प्रकार उपनाम (type alias) ConnectionStateHandler मॉड्यूल log [SWS_LOG_00265] में कनेक्शन स्थिति की निगरानी के लिए कॉलबैक फ़ंक्शन के हस्ताक्षर को निर्दिष्ट करता है। यह नेमस्पेस ara::log में घोषित है और इसके लिए हेडर फ़ाइल ara/log/logger.h को शामिल करना आवश्यक है [SWS_LOG_00265]। एक फ़ंक्शन रैपर std::function<void(ClientState)> के रूप में, कॉलबैक रूटीन प्रकार ClientState के पैरामीटर के माध्यम से हुई कनेक्शन स्थिति को प्राप्त करता है और कोई रिटर्न मान नहीं देता है [SWS_LOG_00265]।

इसका उपयोग पंजीकरण फ़ंक्शन RegisterConnectionStateHandler [SWS_LOG_00205] के माध्यम से किया जाता है। हैंडलर के अंतःक्रिया और जीवनचक्र के लिए निम्नलिखित विनिर्देश लागू होते हैं:

  • कॉल का समय: पंजीकृत कॉलबैक फ़ंक्शन को हर बार तब कॉल किया जाता है, जब क्लाइंट की कनेक्शन स्थिति बदलती है [SWS_LOG_00205]।
  • अनन्यता: किसी भी समय केवल एक ही हैंडलर सक्रिय रूप से पंजीकृत हो सकता है [SWS_LOG_00205]। यदि पहले से कोई कॉलबैक पंजीकृत था, तो नया पास किया गया फ़ंक्शन उसे पूरी तरह से बदल देता है, जिससे उसके बाद केवल नया हैंडलर ही कॉल किया जाता है [SWS_LOG_00205]।
  • अपवाद सुरक्षा: पंजीकरण फ़ंक्शन RegisterConnectionStateHandler को noexcept के साथ निर्दिष्ट किया गया है, ताकि फ़ंक्शन-कॉलबैक का पास होना अपवाद-सुरक्षित रहे [SWS_LOG_00205]।

समवर्तीता (concurrency) के संदर्भ में, विनिर्देश तत्व को थ्रेड-सुरक्षित के रूप में चिह्नित किया गया है [SWS_LOG_00265]। व्याख्या: चूँकि लॉगिंग इंफ्रास्ट्रक्चर द्वारा स्थिति परिवर्तन संभावित रूप से अतुल्यकालिक (asynchronous) रूप से संकेतित होते हैं, इसलिए हैंडलर में प्रदान किए गए एप्लिकेशन लॉजिक को रीएंट्रेंट (reentrant) डिज़ाइन किया जाना चाहिए और संचार संदर्भ में बाधा न डालने के लिए कोई भी अवरोधक (blocking) ऑपरेशन निष्पादित नहीं करना चाहिए। प्रश्न Q-ca507d992cc31284 (खुला)

यह उपयोग निर्देश AUTOSAR विनिर्देश R25-11 के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

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

मुक्त फ़ंक्शनों का प्रलेखन

फ़ंक्शन Arg [SWS_LOG_00201] Upstream: RS_LT_00003, RS_LT_00046

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

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

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

Validate requirementfunction Arg [SWS_LOG_00201] Upstream: RS_LT_00003 , RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Template-Parameter

ParameterBeschreibung
Tthe type of arg

Parameter (in)

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

Rückgabewert

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

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

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

फ़ंक्शन AutoFloat [SWS_LOG_00223] Upstream: RS_LT_00046

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

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

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन AutoFloatMax [SWS_LOG_00224] Upstream: RS_LT_00046

constexpr Format AutoFloatMax () noexcept;

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

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Bin [SWS_LOG_00215] Upstream: RS_LT_00046

constexpr Format Bin () noexcept;

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

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Bin [SWS_LOG_00216] Upstream: RS_LT_00046

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

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

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003, RS_LT_00050

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

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

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

Validate requirementfunction CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003 , RS_LT_00050

Was muss freigegeben werden?

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

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

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function CreateLogger [SWS_LOG_00021] Upstream: RS_LT_00003 , RS_LT_00050
Requirement-ID
SWS_LOG_00021
Flag-ID
SWS_LOG_00021
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
4d0c42e8d7e43c108ffb3a2b8a2487f6375da5adfb6e283cc7c5b69c302397dd
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: d61f94356eb8 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

नेमस्पेस ara::log में फ़ंक्शन CreateLogger एक Logger ऑब्जेक्ट के निर्माण और पंजीकरण के लिए कार्य करता है, जो लॉगिंग फ़्रेमवर्क के भीतर संबंधित संदर्भ का प्रबंधन करता है [SWS_LOG_00021]। कॉल के दौरान, संदर्भ पहचानकर्ता ctxId, पाठ्य विवरण ctxDescription और मानक लॉग स्तर ctxDefLogLevel पास किए जाते हैं [SWS_LOG_00021]। यदि कोई मॉडल उपलब्ध नहीं है, तो फ़्रेमवर्क डिफ़ॉल्ट रूप से आउटपुट को सिंक के रूप में कंसोल पर पुनर्निर्देशित करता है [SWS_LOG_00021]।

फ़ंक्शन आंतरिक रूप से प्रबंधित इंस्टेंस का एक संदर्भ Logger & लौटाता है। इस दौरान स्वामित्व (Ownership) पूरी तरह से लॉगिंग फ़्रेमवर्क के पास रहता है [SWS_LOG_00021]।

समवर्तीता और निष्पादन सुरक्षा

इंटरफ़ेस को noexcept के रूप में घोषित किया गया है और इसे अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) दोनों के रूप में निर्दिष्ट किया गया है [SWS_LOG_00021]। इसलिए इसे कई समवर्ती थ्रेड्स से सुरक्षित रूप से कॉल किया जा सकता है।

पारस्परिक क्रिया और विकल्प

विभिन्न कॉन्फ़िगरेशन दृष्टिकोणों के लिए संबंधित इंटरफेस उपलब्ध हैं:

  • एक वैकल्पिक ओवरलोड केवल ctxId और ctxDescription के माध्यम से इंस्टेंस निर्माण की अनुमति देता है [SWS_LOG_00263], जहाँ Warning को अंतर्निहित रूप से मानक लॉग स्तर के रूप में उपयोग किया जाता है [SWS_LOG_00021]।
  • इसके अतिरिक्त, मेनिफ़ेस्ट से ara::core::InstanceSpecifier के माध्यम से एक Logger को मॉडल-आधारित रूप से प्राप्त किया जा सकता है [SWS_LOG_00256]। इस प्रक्रिया में, प्लेटफ़ॉर्म InstanceSpecifierMappingIntegrityViolation या PortInterfaceMappingViolation जैसी त्रुटियों की जाँच करता है [SWS_LOG_00256]।

यह पाठ AUTOSAR R25-11 के विनिर्देश दस्तावेज़ों के आधार पर एक AI द्वारा जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

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

Rückgabewert

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

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

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

फ़ंक्शन CreateLogger [SWS_LOG_00256] Upstream: RS_LT_00003, RS_LT_00050

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

Creates a Logger object derived from the manifest.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 27922916bcc4 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

सिंक्रोनस फ़ंक्शन CreateLogger मेनिफ़ेस्ट के मॉडल डेटा के आधार पर आंतरिक रूप से प्रबंधित Logger ऑब्जेक्ट का संदर्भ बनाता है या लौटाता है [SWS_LOG_00256]। कॉल पैरामीटर के रूप में एक ara::core::InstanceSpecifier का संदर्भ कार्य करता है, जो चल रही प्रक्रिया के संदर्भ में वांछित मॉडल तत्व की पहचान करता है [SWS_LOG_00256]।

फ़ंक्शन को noexcept के रूप में घोषित किया गया है, इसे अपवाद-सुरक्षित (exception safe) माना जाता है और थ्रेड-सुरक्षित के रूप में निर्दिष्ट किया गया है, ताकि कॉल रीएंट्रेंट और समवर्ती रूप से हो सकें [SWS_LOG_00256]। त्रुटिपूर्ण कॉन्फ़िगरेशन या अमान्य मॉडल संदर्भों के लिए, विनिर्देश कई उल्लंघनों (Violations) को परिभाषित करता है [SWS_LOG_00256]:

  • InstanceSpecifierMappingIntegrityViolation: तब होता है जब Executable के संदर्भ में InstanceSpecifier को हल नहीं किया जा सकता है या यह PortPrototype के अलावा किसी अन्य तत्व को संदर्भित करता है [SWS_LOG_00256]।
  • PortInterfaceMappingViolation: तब ट्रिगर होता है जब मैपिंग प्रकार पोर्ट इंटरफ़ेस के अपेक्षित प्रकार से मेल नहीं खाता है [SWS_LOG_00256]।
  • ProcessMappingViolation: तब प्रभावी होता है जब उपयुक्त InstanceRef तो मौजूद होता है, लेकिन कोई भी मॉडल की गई प्रक्रिया रनटाइम प्रक्रिया से मेल नहीं खाती है [SWS_LOG_00256]।
  • InstanceSpecifierAlreadyInUseViolation: यह संकेत देता है कि फ़्रेमवर्क में एक कंस्ट्रक्टर को ऐसे पहचानकर्ता के साथ कॉल किया गया था, जो इस प्रक्रिया में पहले से ही उपयोग में है [SWS_LOG_00256]।

ओवरलोड [SWS_LOG_00021] और [SWS_LOG_00263] की तुलना में, जो संदर्भ आईडी और विवरण स्ट्रिंग्स के माध्यम से प्रोग्रामेटिक रूप से लॉगर को इनिशियलाइज़ करते हैं और मॉडल के अभाव में डिफ़ॉल्ट रूप से कंसोल को सिंक के रूप में उपयोग करते हैं, यहाँ कॉन्फ़िगरेशन पूरी तरह से मेनिफ़ेस्ट-चालित होता है। सभी वेरिएंट्स में, इंस्टेंस का स्वामित्व लॉगिंग फ़्रेमवर्क के भीतर ही रहता है [SWS_LOG_00263]।

यह पाठ एक AI द्वारा क्यूरेट किया गया था और AUTOSAR विनिर्देश के दिशानिर्देशों पर आधारित है।

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

Parameter (in)

ParameterBeschreibung
isan InstanceSpecifier

Rückgabewert

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

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

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

फ़ंक्शन CreateLogger [SWS_LOG_00263] Upstream: RS_LT_00003, RS_LT_00050

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: e7acfbf050b9 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

नेमस्पेस ara::log ([SWS_LOG_00263]) में फ़ंक्शन CreateLogger AUTOSAR Adaptive के लॉगिंग फ़्रेमवर्क के भीतर संदर्भ-बद्ध Logger ऑब्जेक्ट के निर्माण और पंजीकरण के लिए कार्य करता है।

उपयोग

हेडर फ़ाइल ara/log/logger.h के माध्यम से, फ़ंक्शन संदर्भ पहचानकर्ता ctxId और विस्तृत विवरण ctxDescription प्रत्येक को प्रकार ara::core::StringView के रूप में स्वीकार करता है [SWS_LOG_00263]। रिटर्न मान के रूप में, कॉल बनाए गए Logger ऑब्जेक्ट के आंतरिक रूप से प्रबंधित इंस्टेंस का एक संदर्भ Logger & लौटाता है [SWS_LOG_00263]। इस इंस्टेंस का स्वामित्व (Ownership) स्थायी रूप से लॉगिंग फ़्रेमवर्क के पास रहता है और कॉलर को स्थानांतरित नहीं किया जाता है [SWS_LOG_00263]। यदि सिस्टम में कोई मॉडल उपलब्ध नहीं है, तो कंसोल डिफ़ॉल्ट रूप से सभी लॉगिंग आउटपुट के लिए सिंक (Sink) के रूप में कार्य करता है [SWS_LOG_00263]।

त्रुटि हैंडलिंग और समवर्तीता

कॉल के लिए कोई विशिष्ट त्रुटि कोड परिभाषित नहीं हैं और कोई C++ अपवाद ट्रिगर नहीं होते हैं, क्योंकि फ़ंक्शन को noexcept के साथ निर्दिष्ट किया गया है और अपवाद-सुरक्षित (exception safe) के रूप में नामित किया गया है [SWS_LOG_00263]। समवर्तीता के संबंध में, CreateLogger थ्रेड-सुरक्षित (thread-safe) है, ताकि बाहरी सिंक्रोनाइज़ेशन के बिना एकाधिक थ्रेड्स से फ़ंक्शन को समवर्ती रूप से कॉल किया जा सके [SWS_LOG_00263]।

इंटरैक्शन

लॉगिंग फ़्रेमवर्क निकट से संबंधित ओवरलोड्स प्रदान करता है: इस दो-पैरामीटर वाले हस्ताक्षर के अलावा, एक ओवरलोड ctxDefLogLevel ([SWS_LOG_00021]) के माध्यम से एक मानक लॉग स्तर के अतिरिक्त कॉन्फ़िगरेशन की अनुमति देता है। एक अन्य हस्ताक्षर सीधे मेनिफ़ेस्ट से ara::core::InstanceSpecifier के माध्यम से Logger ऑब्जेक्ट के निर्माण को सक्षम बनाता है ([SWS_LOG_00256])।

यह उपयोग नोट AUTOSAR विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

ParameterBeschreibung
ctxIdThe context ID
ctxDescriptionThe description of the provided context ID

Rückgabewert

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

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

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

फ़ंक्शन Dec [SWS_LOG_00211] Upstream: RS_LT_00046

constexpr Format Dec () noexcept;

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

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

Validate requirementfunction Dec [SWS_LOG_00211] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Dec [SWS_LOG_00212] Upstream: RS_LT_00046

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

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

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

Validate requirementfunction Dec [SWS_LOG_00212] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन DecFloat [SWS_LOG_00217] Upstream: RS_LT_00046

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

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

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन DecFloatMax [SWS_LOG_00218] Upstream: RS_LT_00046

constexpr Format DecFloatMax () noexcept;

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

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Dflt [SWS_LOG_00208] Upstream: RS_LT_00046

constexpr Format Dflt () noexcept;

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

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

Validate requirementfunction Dflt [SWS_LOG_00208] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन EngFloat [SWS_LOG_00219] Upstream: RS_LT_00046

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

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

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन EngFloatMax [SWS_LOG_00220] Upstream: RS_LT_00046

constexpr Format EngFloatMax () noexcept;

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 728634d333ca उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

हेडर फ़ाइल ara/log/logger.h से फ़ंक्शन ara::log::EngFloatMax() तुल्यकालिक रूप से प्रकार Format का एक इंस्टेंस बनाता है [SWS_LOG_00220]। लौटाए गए ऑब्जेक्ट में इंजीनियरिंग नोटेशन में फ़्लोटिंग-पॉइंट नंबरों के आउटपुट के लिए फ़ॉर्मेटिंग संकेत Fmt::kEngFloat और साथ ही एक परिशुद्धता शामिल है जो पूर्ण राउंड-ट्रिप सुरक्षा (“full round-trip safety”) के लिए पर्याप्त है [SWS_LOG_00220]। फ़ंक्शन किसी पैरामीटर की अपेक्षा नहीं करता है।

त्रुटि प्रबंधन

फ़ंक्शन विनिर्देशक noexcept के साथ प्रदान किया गया है और अपवाद-सुरक्षित (exception safe) के रूप में परिभाषित है [SWS_LOG_00220]। कोई विशिष्ट त्रुटि कोड मौजूद नहीं हैं, और न तो अपवाद उठाए जाते हैं और न ही डायग्नोस्टिक या त्रुटि रिपोर्टिंग इंस्टेंस को त्रुटियां प्रेषित की जाती हैं। नियमित संचालन में कॉल विफल नहीं होती है।

समवर्तीता और प्रतिबंध

विनिर्देश फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) के रूप में चिह्नित करता है [SWS_LOG_00220]। constexpr के रूप में अंकन के कारण, कॉल का संकलन समय पर ही मूल्यांकन किया जा सकता है। व्याख्या: चूँकि विनिर्देश कोई पूर्वशर्त परिभाषित नहीं करता है और फ़ंक्शन स्टेटलेस है, इसलिए न तो कॉल संदर्भ के संबंध में कोई प्रतिबंध होना चाहिए और न ही लॉगिंग इंफ्रास्ट्रक्चर के पूर्व आरंभीकरण पर कोई निर्भरता होनी चाहिए। प्रश्न Q-90c67bfad5b19641 (खुला)

यह उपयोग नोट AUTOSAR Adaptive R25-11 विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Hex [SWS_LOG_00209] Upstream: RS_LT_00046

constexpr Format Hex () noexcept;

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

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

Validate requirementfunction Hex [SWS_LOG_00209] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Hex [SWS_LOG_00210] Upstream: RS_LT_00046

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

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

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

Validate requirementfunction Hex [SWS_LOG_00210] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन HexFloat [SWS_LOG_00221] Upstream: RS_LT_00046

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 2ffe78f5109c उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

हेल्पर फ़ंक्शन HexFloat [SWS_LOG_00221] के अनुसार हेक्साडेसिमल प्रारूप में आउटपुट के लिए फ़्लोटिंग-पॉइंट संख्याओं के स्वरूपण ऑब्जेक्ट को बनाने का काम करता है। यह Format प्रकार के एक ऑब्जेक्ट को इंस्टैंशिएट करता है, जो स्वरूपण निर्देश Fmt::kHexFloat और एक निर्दिष्ट परिशुद्धता से सुसज्जित होता है।

उपयोग और पैरामीटर

यह फ़ंक्शन हेडर #include "ara/log/logger.h" के माध्यम से नेमस्पेस ara::log में उपलब्ध है [SWS_LOG_00221]:

  • पैरामीटर: इनपुट पैरामीटर के रूप में प्रकार std::uint16_t का precision पास किया जाता है, जो वांछित आउटपुट परिशुद्धता निर्धारित करता है [SWS_LOG_00221]।
  • रिटर्न मान: सेट किए गए Fmt::kHexFloat उपसर्ग के साथ एक आरंभिक Format ऑब्जेक्ट [SWS_LOG_00221]।
  • निष्पादन: constexpr के रूप में चिह्नित होने के कारण, स्वरूपण निर्देश का निर्माण रनटाइम पर समकालिक रूप से या पहले से ही संकलन समय पर हो सकता है [SWS_LOG_00221]।

त्रुटि हैंडलिंग और समवर्तीता

हस्ताक्षर को noexcept के साथ घोषित किया गया है और इसे पूरी तरह से अपवाद-सुरक्षित (exception safe) माना जाता है [SWS_LOG_00221]। इसमें न तो कोई त्रुटि कोड और न ही कोई विशिष्ट त्रुटि संदेश उत्पन्न होते हैं। फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है और इसे बिना किसी सिंक्रोनाइज़ेशन ओवरहेड के समानांतर में किन्हीं भी संदर्भों से कॉल किया जा सकता है [SWS_LOG_00221]।

यह उपयोग नोट AUTOSAR Adaptive R25-11 के विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन HexFloatMax [SWS_LOG_00222] Upstream: RS_LT_00046

constexpr Format HexFloatMax () noexcept;

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 98728cb410cd उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

नेमस्पेस ara::log में फ़ंक्शन HexFloatMax फ्लोटिंग-पॉइंट मानों [SWS_LOG_00222] के फॉर्मेटेड आउटपुट के लिए एक Format-इंस्टेंस बनाने का काम करता है। यह हेडर फ़ाइल #include "ara/log/logger.h" के माध्यम से प्रदान किया जाता है और कोई कॉल पैरामीटर स्वीकार नहीं करता है [SWS_LOG_00222]। एक सिंक्रोनस रिटर्न मान के रूप में एक Format-इंस्टेंस प्रदान किया जाता है, जो फ़ॉर्मेटिंग हिंट Fmt::kHexFloat से लैस होता है और ऐसी सटीकता प्रदर्शित करता है जो पूर्ण राउंड-ट्रिप सुरक्षा सुनिश्चित करती है [SWS_LOG_00222]।

सिग्नेचर को constexpr और साथ ही noexcept के रूप में घोषित किया गया है [SWS_LOG_00222]। यह कंपाइल-टाइम पर ही मूल्यांकन की अनुमति देता है और गारंटी देता है कि निष्पादन के दौरान कोई अपवाद उत्पन्न नहीं हो सकता। इस कॉल के लिए कोई विशेष त्रुटि स्थितियाँ, त्रुटि कोड या त्रुटि प्रबंधन तंत्र निर्दिष्ट नहीं हैं, क्योंकि फ़ॉर्मेट ऑब्जेक्ट का निर्माण हमेशा त्रुटिरहित होता है।

कॉल संदर्भ और समवर्तीता (concurrency) के संबंध में, फ़ंक्शन को एक्सेप्शन-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_LOG_00222]। यह किसी भी अनुक्रमिक कॉल प्रतिबंधों के अधीन नहीं है और अतिरिक्त सिंक्रोनाइज़ेशन के बिना किसी भी मनमाने थ्रेड से सुरक्षित और समवर्ती रूप से कॉल किया जा सकता है।

यह उपयोग नोट R25-11 के लिए AUTOSAR विनिर्देश के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Oct [SWS_LOG_00213] Upstream: RS_LT_00046

constexpr Format Oct () noexcept;

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

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

Validate requirementfunction Oct [SWS_LOG_00213] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Oct [SWS_LOG_00213] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00213
Flag-ID
SWS_LOG_00213
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
0d98563bf793e8e238cce1904ccafbad1c596aa5dc4338b08bf17b83b9545ec8
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 385124e3fb4e उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

फ़ंक्शन ara::log::Oct() ऑक्टल प्रणाली में लॉगिंग आउटपुट के लिए एक फ़ॉर्मेटिंग ऑब्जेक्ट बनाने हेतु एक सहायक फ़ंक्शन के रूप में कार्य करता है [SWS_LOG_00213]। यह कोई पैरामीटर नहीं लेता है और सिंक्रोनस रूप से प्रकार Format का एक ऑब्जेक्ट लौटाता है, जो फ़ॉर्मेटिंग संकेत Fmt::kOct तथा एक मानक परिशुद्धता के साथ कॉन्फ़िगर किया गया है [SWS_LOG_00213]। चूँकि फ़ंक्शन को constexpr के रूप में घोषित किया गया है, इसलिए इंस्टैंशिएशन कंपाइल-टाइम पर ही हो सकता है। व्याख्या: लौटाया गया Format ऑब्जेक्ट संभवतः मुख्य रूप से लॉग स्ट्रीम में पूर्णांकों के फ़ॉर्मेटिंग को नियंत्रित करने के लिए अभिप्रेत है। प्रश्न Q-3f4fe5ac42de16cb (खुला)

त्रुटि प्रबंधन

फ़ंक्शन अपवाद सुरक्षा (exception safe) की गारंटी देता है और इसे स्पष्ट रूप से noexcept के रूप में घोषित किया गया है [SWS_LOG_00213]। रनटाइम त्रुटियों का होना या अपवादों का फेंका जाना वर्जित है। विशिष्ट त्रुटि कोड मौजूद नहीं हैं, और DET या DEM को कोई सूचना नहीं भेजी जाती है।

समवर्तीता और प्रतिबंध

Oct() का कॉल बिना किसी प्रतिबंध के थ्रेड-सुरक्षित (thread-safe) है [SWS_LOG_00213]। चूँकि कोई साझा अवस्थाएँ संशोधित नहीं की जाती हैं, इसलिए फ़ंक्शन रीएंट्रेंसी या कॉल संदर्भ के संबंध में किसी प्रतिबंध के अधीन नहीं है और इसे कई थ्रेड्स से समानांतर में कॉल किया जा सकता है।

इंटरैक्शन

फ़ंक्शन नेमस्पेस ara::log में परिभाषित है और हेडर फ़ाइल #include "ara/log/logger.h" के माध्यम से प्रदान किया जाता है [SWS_LOG_00213]। इस पैरामीटर रहित वेरिएंट के अलावा, ओवरलोड Oct(std::uint16_t precision) मौजूद है, जिसके माध्यम से एक भिन्न अंक परिशुद्धता निर्दिष्ट की जा सकती है [SWS_LOG_00214]।

यह उपयोग नोट AUTOSAR विनिर्देश के आधार पर स्वचालित रूप से तैयार किया गया था।

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन Oct [SWS_LOG_00214] Upstream: RS_LT_00046

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

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

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

Validate requirementfunction Oct [SWS_LOG_00214] Upstream: RS_LT_00046

Was muss freigegeben werden?

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

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

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function Oct [SWS_LOG_00214] Upstream: RS_LT_00046
Requirement-ID
SWS_LOG_00214
Flag-ID
SWS_LOG_00214
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
91027575a070dd8d6404ff57bc499e91d130fd2a1f6278243d23e31d93188d52
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: acd78a533e1e उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

हेल्पर फ़ंक्शन ara::log::Oct हेडर फ़ाइल #include "ara/log/logger.h" के माध्यम से नेमस्पेस ara::log में प्रदान किया जाता है [SWS_LOG_00214]। यह स्वरूपण निर्देश Fmt::kOct और एक निर्दिष्ट परिशुद्धता के साथ प्रकार Format का एक इंस्टेंस बनाने का काम करता है [SWS_LOG_00214]। इनपुट पैरामीटर के रूप में, फ़ंक्शन अहस्ताक्षरित 16-बिट पूर्णांक मान precision स्वीकार करता है, जो लागू की जाने वाली परिशुद्धता को निर्धारित करता है [SWS_LOG_00214]। फ़ंक्शन समकालिक रूप से कार्य करता है और बनाए गए Format इंस्टेंस को तुरंत लौटाता है [SWS_LOG_00214]।

त्रुटि हैंडलिंग और समवर्तीता

फ़ंक्शन को noexcept के रूप में घोषित किया गया है और स्पष्ट रूप से अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है [SWS_LOG_00214]। त्रुटि की स्थिति में न तो कोई विशिष्ट त्रुटि कोड मौजूद हैं और न ही DET या DEM के माध्यम से सूचनाएं। कॉल संदर्भ और संगामिति के संबंध में, फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) के रूप में वर्गीकृत किया गया है [SWS_LOG_00214]। चूँकि इसे constexpr के रूप में भी परिभाषित किया गया है, स्वरूपण निर्देश का निर्माण पहले से ही संकलन समय पर हो सकता है [SWS_LOG_00214]।

इंटरैक्शन

मॉड्यूल log के भीतर, यह फ़ंक्शन संबंधित ओवरलोड Oct() को पूरा करता है [SWS_LOG_00213]। जबकि पैरामीटर-रहित संस्करण डिफ़ॉल्ट परिशुद्धता (default precision) के साथ एक Format इंस्टेंस का निर्माण करता है [SWS_LOG_00213], वर्तमान फ़ंक्शन ऑक्टल स्वरूपण के लिए उपयोगकर्ता-विशिष्ट परिशुद्धता के स्पष्ट विन्यास की अनुमति देता है [SWS_LOG_00214]।

यह पाठ AUTOSAR विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

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

फ़ंक्शन RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003, RS_LT_00050

void RegisterConnectionStateHandler (ConnectionStateHandler callback) noexcept;

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

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

Validate requirementfunction RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003 , RS_LT_00050

Was muss freigegeben werden?

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

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

Prüfkontext

Review-Grund
Legacy-Beschreibung prüfen
Warum ist ein Review nötig?
Der Beschreibungstext wurde aus einer älteren Dokumentationsquelle übernommen und konnte nicht mit hoher Sicherheit gegen die aktuelle Spezifikation verifiziert werden.
API-Element
function RegisterConnectionStateHandler [SWS_LOG_00205] Upstream: RS_LT_00003 , RS_LT_00050
Requirement-ID
SWS_LOG_00205
Flag-ID
SWS_LOG_00205
Status
pending
Konfidenz
medium
Herkunft
explicit
Modul
log
Spezifikationsdokument
AUTOSAR_AP_SWS_LogAndTrace
Text-Hash
7277e873d69d6aa3fee1974c126affd721a9e95eed8817c133036763ce975f0a
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 240d7b239d7a उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

नेमस्पेस ara::log में फ़ंक्शन RegisterConnectionStateHandler एक एप्लिकेशन-साइड कॉलबैक फ़ंक्शन को पंजीकृत करने का काम करता है, जिसे कनेक्शन स्थिति में प्रत्येक परिवर्तन पर कॉल किया जाता है [SWS_LOG_00205]। यह हेडर ara/log/logger.h [SWS_LOG_00205] में घोषित है। पैरामीटर के रूप में प्रकार ConnectionStateHandler का एक फ़ंक्शन ऑब्जेक्ट callback पास किया जाता है [SWS_LOG_00205], जो std::function<void(ClientState)> के लिए एक प्रकार उपनाम (type alias) के रूप में निर्दिष्ट है [SWS_LOG_00265]। कोई रिटर्न मान मौजूद नहीं है (void) [SWS_LOG_00205]।

जीवनचक्र और अनुक्रम के संबंध में, यह निर्धारित किया गया है कि किसी भी समय केवल एक ही स्थिति हैंडलर स्थापित किया जा सकता है [SWS_LOG_00205]। यदि कोई कॉलबैक फ़ंक्शन पहले ही पंजीकृत किया गया था, तो प्रत्येक नया कॉल मौजूदा इंस्टेंस को पूरी तरह से ओवरराइट कर देता है, जिससे उस समय से केवल अंतिम रूप से पास किया गया हैंडलर ही निष्पादित होगा [SWS_LOG_00205]।

फ़ंक्शन को noexcept के साथ घोषित किया गया है और अपवाद-सुरक्षित (“exception safe”) के रूप में निर्दिष्ट किया गया है [SWS_LOG_00205]। विनिर्देश में विशिष्ट त्रुटि कोड, त्रुटि मान या त्रुटि या डायग्नोस्टिक मॉनिटर को सूचनाएं परिभाषित नहीं हैं [SWS_LOG_00205]।

समवर्तीता के संदर्भ में, RegisterConnectionStateHandler को स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (“not thread-safe”) के रूप में वर्गीकृत किया गया है [SWS_LOG_00205]। इसलिए पंजीकरण को कई थ्रेड्स से असुरक्षित रूप से समवर्ती तरीके से कॉल नहीं किया जाना चाहिए और आदर्श रूप से आरंभीकरण चरण के दौरान होना चाहिए। इसके विपरीत, प्रकार उपनाम ConnectionStateHandler को थ्रेड-सुरक्षित के रूप में निर्दिष्ट किया गया है [SWS_LOG_00265]। व्याख्या: इससे यह निष्कर्ष निकल सकता है कि पंजीकृत कॉलबैक को आंतरिक लॉगिंग रनटाइम वातावरण द्वारा स्थिति परिवर्तन के दौरान संभावित रूप से समवर्ती संदर्भों से कॉल किया जा सकता है। प्रश्न Q-59eae7980ba48666 (खुला)

यह पाठ एक AI द्वारा तैयार किया गया था और यह AUTOSAR रिलीज़ R25-11 के विनिर्देशों पर आधारित है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

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

Rückgabewert

TypBeschreibung
None

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

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

फ़ंक्शन operator<< [SWS_LOG_00063] Upstream: RS_LT_00003, RS_LT_00046

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

Appends LogLevel enum parameter as text into message.

Appends LogLevel enum parameter as text into message.

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

Was muss freigegeben werden?

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

Appends LogLevel enum parameter as text into message.

Prüfkontext

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

Parameter (in)

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

Parameter (in/out)

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

Rückgabewert

TypBeschreibung
LogStream &*this

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

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

फ़ंक्शन operator<< [SWS_LOG_00124] Upstream: RS_LT_00003, RS_LT_00046

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

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

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

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

Was muss freigegeben werden?

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

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

Prüfkontext

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

Parameter (in)

ParameterBeschreibung
ecthe ErrorCode instance to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

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

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

फ़ंक्शन operator<< [SWS_LOG_00125] Upstream: RS_LT_00049

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

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

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

Validate requirementfunction operator<< [SWS_LOG_00125] Upstream: RS_LT_00049

Was muss freigegeben werden?

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

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

Prüfkontext

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

Template-Parameter

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

Parameter (in)

ParameterBeschreibung
valuethe duration instance to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

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

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

फ़ंक्शन operator<< [SWS_LOG_00126] Upstream: RS_LT_00049

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

Write a core::InstanceSpecifier into the message.

Write a core::InstanceSpecifier into the message.

Validate requirementfunction operator<< [SWS_LOG_00126] Upstream: RS_LT_00049

Was muss freigegeben werden?

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

Write a core::InstanceSpecifier into the message.

Prüfkontext

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

Parameter (in)

ParameterBeschreibung
valuethe InstanceSpecifier to log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

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

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

फ़ंक्शन operator<< [SWS_LOG_00127] Upstream: RS_LT_00049

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

Write a raw pointer into the message.

Write a raw pointer into the message.

Validate requirementfunction operator<< [SWS_LOG_00127] Upstream: RS_LT_00049

Was muss freigegeben werden?

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

Write a raw pointer into the message.

Prüfkontext

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

Parameter (in)

ParameterBeschreibung
valueto log

Parameter (in/out)

ParameterBeschreibung
outthe LogStream object into which to add the value

Rückgabewert

TypBeschreibung
LogStream &out

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

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