DEENESPTFRRUARHIKOZHNL

namespace ara::log

Guide utilisateurGÉNÉRÉ PAR IA

Permet la création de contextes de journalisation, de flux de messages formatés et la surveillance de l’état du client.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : aad9146dd3fe Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Permet la création de contextes de journalisation, de flux de messages formatés et la surveillance de l’état du client.

L’espace de noms ara::log fournit des services de journalisation adaptatifs en gérant des enregistreurs de contexte et en émettant des flux de messages typés vers des puits tels que le dorsal DLT ou la console [SWS_LOG_00021]. Les applications obtiennent des enregistreurs via des fonctions de fabrique, préparent des données utiles formatées via des wrappers d’arguments et injectent les données de manière thread-safe dans les messages de journalisation. Contrainte essentielle : la propriété de toutes les instances d’enregistreur reste au framework, tandis que l’enregistrement du gestionnaire d’état de connexion est explicitement non thread-safe [SWS_LOG_00205].

Contexte

L’espace de noms ara::log fournit l’infrastructure centrale de journalisation pour les applications adaptatives. Ses responsabilités principales englobent la gestion des contextes de journalisation via la classe Logger, la génération structurée de messages de journalisation via LogStream ainsi que la transmission typée de données utiles formatées via Argument et Format. Le framework sert de lien entre les appels de journalisation côté application et les puits cibles : le dorsal DLT (Diagnostic Log and Trace) sert de puits principal, son état de connectivité étant représenté par l’énumération ClientState [SWS_LOG_00098]. Si aucun modèle n’est disponible, la console fait office de puits par défaut [SWS_LOG_00021]. Les changements d’état des correspondants externes peuvent être surveillés via des fonctions de rappel du type ConnectionStateHandler [SWS_LOG_00265].

LogKontext Anwendung Anwendung LoggingFramework LoggingFramework Anwendung->LoggingFramework nutzt API DltBackEnd DltBackEnd LoggingFramework->DltBackEnd transmet les messages de journalisation Konsole Konsole LoggingFramework->Konsole Fallback-Ausgabe RemoteClient RemoteClient DltBackEnd->RemoteClient Zustandsmeldung

Diagramme de contexte : partenaires d’interaction du framework de journalisation entre l’application, la console, le dorsal DLT et le client externe. Sources : [SWS_LOG_00021], [SWS_LOG_00098], [SWS_LOG_00205].

Cycle de vie

Les instances de Logger ne sont pas construites directement par l’application, mais instanciées par les fonctions de fabrique CreateLogger et enregistrées dans le framework de journalisation [SWS_LOG_00021], [SWS_LOG_00263]. Les relations de propriété sont clairement définies : la propriété reste intégralement au sein du framework de journalisation (« Ownership stays within the Logging framework »), qui renvoie des références (Logger&) à l’appelant [SWS_LOG_00021]. Alternativement, la création peut s’effectuer de manière basée sur un modèle à l’aide d’un ara::core::InstanceSpecifier [SWS_LOG_00256]. Interprétation : puisque le framework conserve la propriété, la durée de vie des enregistreurs enregistrés devrait être liée au processus parent. Question Q-4b81e462cf2e43b1 (ouverte)

En ce qui concerne la concurrence, la création d’enregistreurs via CreateLogger est spécifiée comme étant thread-safe [SWS_LOG_00021]. En revanche, l’enregistrement des gestionnaires d’état de connexion via RegisterConnectionStateHandler est explicitement non thread-safe (« not thread-safe ») [SWS_LOG_00205] ; il doit donc généralement avoir lieu durant la phase d’initialisation avant le démarrage d’activités concurrentes. De plus, un seul gestionnaire peut être actif à la fois ; un nouvel enregistrement remplace immédiatement les rappels précédents [SWS_LOG_00205]. Le cycle de vie de connexion des correspondants externes passe par les étapes kUnknown (dorsal DLT pas encore actif), kNotConnected et kConnected [SWS_LOG_00098].

Parcours d'utilisation

Le déroulement régulier comprend la configuration de la surveillance, l’obtention de l’enregistreur et l’émission de messages formatés :

Initialisation et journalisation dans le namespace ara::logApplicationara::logLogStreamUse Case: Configuration et initialisationRegisterConnectionStateHandler(callback)CreateLogger("ctx", "desc", LogLevel::kInfo)Logger&Use Case: Préparation des arguments et émissionArg(val, "wert", "ms", Hex())Argument<T>operator<<(out, ec)LogStream&

Diagramme de séquence : séquence d’interaction typique lors de l’initialisation, de la création d’enregistreurs et de l’émission de données formatées via LogStream. Sources : [SWS_LOG_00021], [SWS_LOG_00063], [SWS_LOG_00124], [SWS_LOG_00201], [SWS_LOG_00205].

Scénarios d'erreur

Les fonctions de l’espace de noms sont pour la plupart déclarées avec noexcept et offrent des garanties d’absence d’exception, mais sont soumises à des préconditions et à des règles de violation strictes :

  • Violations de manifeste : lors de la création basée sur un modèle d’un enregistreur via CreateLogger(const ara::core::InstanceSpecifier&), des violations d’exécution spécifiques peuvent être déclenchées : InstanceSpecifierMappingIntegrityViolation (le spécificateur ne peut pas être résolu dans le modèle ou ne fait pas référence à un PortPrototype), PortInterfaceMappingViolation (le type de mappage ne correspond pas au PortInterface attendu), ProcessMappingViolation (aucun processus correspondant trouvé) ainsi que InstanceSpecifierAlreadyInUseViolation (le spécificateur est déjà utilisé dans le processus) [SWS_LOG_00256].
  • Typage d’argument non valide : l’appel de Arg est syntaxiquement incorrect (« ill-formed ») si le type T n’est ni un type arithmétique ni bool et ne peut être converti ni en ara::core::StringView ni en ara::core::Span<const ara::core::Byte>. De même, la transmission d’un texte d’unité différent de nullptr unit pour des chaînes de caractères, des plages d’octets (spans) ou des types booléens entraîne une erreur [SWS_LOG_00201].
  • Représentation des erreurs : lors de l’émission d’une instance de core::ErrorCode sur la console, le code d’erreur est formaté de manière spécifique à l’implémentation, le nom de domaine (ErrorCode::Domain().Name()) et le numéro d’erreur intégral devant être inclus [SWS_LOG_00124].

Ce guide est basé sur la spécification du module log dans la version R25-11 de l’Adaptive Platform.

Carte des thèmes

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

Diagramme de classes

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

Vue détaillée

Sélectionnez une entrée dans le plan.

Logger-Kontext

Logger classe

Represents a logger context

CreateLogger fonction 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.

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

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

void RegisterConnectionStateHandler (ConnectionStateHandler callback) noexcept;
ClientState énumération

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

enum class ClientState : std::int8_t {...};
LogLevel énumération

List of possible severity levels .

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

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

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

Nachrichtenaufbau

Argument classe

Wrapper type for holding a payload argument with its attributes

LogStream classe

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

Entrée/sortie << 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 fonction

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 classe

A type holding a formatting hint

AutoFloat fonction

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

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

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 fonction 2

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

Surcharges Bin 2
constexpr Format Bin () noexcept; SWS_LOG_00215
constexpr Format Bin (std::uint16_t precision) noexcept; SWS_LOG_00216
Dec fonction 2

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

Surcharges Dec 2
constexpr Format Dec () noexcept; SWS_LOG_00211
constexpr Format Dec (std::uint16_t precision) noexcept; SWS_LOG_00212
DecFloat fonction

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

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

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 fonction

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

constexpr Format Dflt () noexcept;
EngFloat fonction

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

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

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 fonction 2

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

Surcharges Hex 2
constexpr Format Hex () noexcept; SWS_LOG_00209
constexpr Format Hex (std::uint16_t precision) noexcept; SWS_LOG_00210
HexFloat fonction

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

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

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 fonction 2

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

Surcharges Oct 2
constexpr Format Oct () noexcept; SWS_LOG_00213
constexpr Format Oct (std::uint16_t precision) noexcept; SWS_LOG_00214
Fmt énumération

Format specifiers for log message arguments .

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

Énumérations

énumération 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.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : b76d16a569dc Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

L'énumération ara::log::ClientState représente l'état de connexion actuel d'un client externe au backend DLT [SWS_LOG_00098]. Elle repose sur le type de données std::int8_t et est intégrée via le fichier d'en-tête #include "ara/log/common.h" ou l'en-tête de transmission #include "ara/log/log_fwd.h" [SWS_LOG_00098].

États et sémantique

L'énumération définit trois états de connexion discrets [SWS_LOG_00098] :

  • kUnknown (-1) : le backend DLT n'est pas encore opérationnel ; l'état de connexion effectif ne peut pas être déterminé à ce moment [SWS_LOG_00098].
  • kNotConnected : aucun client externe n'a été détecté [SWS_LOG_00098].
  • kConnected : un client distant est connecté avec succès [SWS_LOG_00098].

Interaction et concurrence

L'énumération sert principalement de paramètre de transmission pour le rappel de fonction ConnectionStateHandler (défini comme std::function<void(ClientState)>), qui est enregistré via ara::log::RegisterConnectionStateHandler [SWS_LOG_00265]. Ce gestionnaire est déclaré comme thread-safe [SWS_LOG_00265]. Interprétation : les gestionnaires enregistrés devraient être appelés de manière asynchrone dès que le backend DLT détecte des changements d'état du client externe. Question Q-b78ef73772a658a2 (ouverte)

Ce texte a été généré par une IA sur la base de la spécification AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité 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#79861e1b
Content hash
79861e1b
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

énumération 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#6bbf9ca3
Content hash
6bbf9ca3
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

énumération 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#fd721fb0
Content hash
fd721fb0
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

Alias de type

alias de type 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
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 61bab347af38 Provenance Questions ouvertes (1)
traduit du guide allemandGénéré par l'IAgemini-3.8-flash-low · 2026-10-13 · Original allemand

L'alias de type ConnectionStateHandler spécifie la signature des fonctions de rappel destinées à la surveillance de l'état de connexion dans le module log [SWS_LOG_00265]. Il est déclaré dans l'espace de noms ara::log et nécessite l'inclusion du fichier d'en-tête ara/log/logger.h [SWS_LOG_00265]. En tant qu'enveloppe de fonction std::function<void(ClientState)>, la routine de rappel reçoit l'état de connexion survenu via le paramètre de type ClientState et ne fournit aucune valeur de retour [SWS_LOG_00265].

L'utilisation s'effectue via la fonction d'enregistrement RegisterConnectionStateHandler [SWS_LOG_00205]. Les exigences suivantes s'appliquent à l'interaction et au cycle de vie du gestionnaire :

  • Instant d'appel : la fonction de rappel enregistrée est appelée chaque fois que l'état de connexion du client change [SWS_LOG_00205].
  • Exclusivité : un seul gestionnaire peut être activement enregistré à un instant donné [SWS_LOG_00205]. Si un rappel a déjà été enregistré auparavant, la fonction nouvellement transmise le remplace intégralement, de sorte que seul le nouveau gestionnaire sera appelé dorénavant [SWS_LOG_00205].
  • Sécurité face aux exceptions : la fonction d'enregistrement RegisterConnectionStateHandler est spécifiée avec noexcept, de sorte que la transmission du rappel de fonction s'effectue de manière sûre face aux exceptions [SWS_LOG_00205].

Concernant la concurrence, l'élément de spécification est marqué comme thread-safe [SWS_LOG_00265]. Interprétation : étant donné que les changements d'état sont potentiellement signalés de manière asynchrone par l'infrastructure de journalisation, la logique applicative fournie dans le gestionnaire devrait devoir être conçue de manière réentrante et ne pas exécuter d'opérations bloquantes afin de ne pas entraver le contexte de communication. Question Q-ca507d992cc31284 (ouverte)

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité 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#5fb6ac71
Content hash
5fb6ac71
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

Documentation des fonctions libres

fonction 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#876594e7
Content hash
876594e7
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

fonction 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#f6197dbb
Content hash
f6197dbb
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

fonction 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#3865235d
Content hash
3865235d
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

fonction 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#3e79460b
Content hash
3e79460b
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

fonction 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#66354084
Content hash
66354084
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

fonction 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
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : d61f94356eb8 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction CreateLogger dans l'espace de noms ara::log sert à créer et à enregistrer un objet Logger qui gère le contexte respectif au sein du framework de journalisation [SWS_LOG_00021]. Lors de l'appel, l'identifiant de contexte ctxId, la description textuelle ctxDescription ainsi que le niveau de log par défaut ctxDefLogLevel sont transmis [SWS_LOG_00021]. Si aucun modèle n'est disponible, le framework redirige par défaut les sorties vers la console comme puits [SWS_LOG_00021].

La fonction renvoie une référence Logger & vers l'instance gérée en interne. La propriété (ownership) demeure ici intégralement au sein du framework de journalisation [SWS_LOG_00021].

Concurrence et sécurité d'exécution

L'interface est déclarée comme noexcept et spécifiée à la fois comme sûre face aux exceptions (exception safe) et sûre au niveau des threads (thread-safe) [SWS_LOG_00021]. Elle peut ainsi être appelée en toute sécurité depuis plusieurs threads concurrents.

Interaction et alternatives

Des interfaces apparentées sont disponibles pour différentes approches de configuration :

  • Une surcharge alternative permet l'instanciation uniquement via ctxId et ctxDescription [SWS_LOG_00263], Warning étant implicitement utilisé comme niveau de log par défaut [SWS_LOG_00021].
  • De plus, un Logger peut être dérivé d'après le modèle via un ara::core::InstanceSpecifier issu du manifeste [SWS_LOG_00256]. La plateforme vérifie alors des erreurs telles que InstanceSpecifierMappingIntegrityViolation ou PortInterfaceMappingViolation [SWS_LOG_00256].

Ce texte a été généré par une IA sur la base des documents de spécification d'AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité 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#8c389eed
Content hash
8c389eed
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

fonction 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.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 27922916bcc4 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction synchrone CreateLogger crée ou renvoie une référence vers un objet Logger géré en interne, sur la base des données de modèle du manifeste [SWS_LOG_00256]. Une référence vers un ara::core::InstanceSpecifier, qui identifie l'élément de modèle souhaité dans le contexte du processus en cours d'exécution, sert de paramètre d'appel [SWS_LOG_00256].

La fonction est déclarée comme noexcept, est considérée comme sûre face aux exceptions (exception safe) et est spécifiée comme thread-safe, de sorte que les appels peuvent être réentrants et concurrents [SWS_LOG_00256]. Pour les configurations erronées ou les contextes de modèle invalides, la spécification définit plusieurs violations (Violations) [SWS_LOG_00256] :

  • InstanceSpecifierMappingIntegrityViolation : survient lorsque l'InstanceSpecifier ne peut pas être résolu dans le contexte de l'exécutable ou renvoie vers un élément autre qu'un PortPrototype [SWS_LOG_00256].
  • PortInterfaceMappingViolation : est déclenché si le type de mappage ne correspond pas au type attendu de l'interface de port [SWS_LOG_00256].
  • ProcessMappingViolation : s'applique si une InstanceRef correspondante existe bien, mais qu'aucun processus modélisé ne correspond au processus d'exécution [SWS_LOG_00256].
  • InstanceSpecifierAlreadyInUseViolation : signale qu'un constructeur dans le framework a été appelé avec un identifiant qui est déjà utilisé dans ce processus [SWS_LOG_00256].

Par comparaison avec les surcharges [SWS_LOG_00021] et [SWS_LOG_00263], qui initialisent les loggers par programmation via des ID de contexte et des chaînes de description et utilisent par défaut la console comme puits en l'absence de modèle, la configuration est ici entièrement pilotée par le manifeste. Dans toutes les variantes, la propriété de l'instance demeure au sein du framework de journalisation [SWS_LOG_00263].

Ce texte a été élaboré par une IA et repose sur les exigences de la spécification 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#534ea407
Content hash
534ea407
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

fonction 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.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : e7acfbf050b9 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction CreateLogger dans l'espace de noms ara::log ([SWS_LOG_00263]) sert à la création et à l'enregistrement d'un objet Logger lié à un contexte au sein du framework de journalisation d'AUTOSAR Adaptive.

Utilisation

Via le fichier d'en-tête ara/log/logger.h, la fonction reçoit l'identifiant de contexte ctxId ainsi que la description détaillée ctxDescription chacun en tant que type ara::core::StringView [SWS_LOG_00263]. En guise de valeur de retour, l'appel renvoie une référence Logger & vers l'instance gérée en interne de l'objet Logger créé [SWS_LOG_00263]. La propriété (ownership) sur cette instance demeure en permanence auprès du framework de journalisation et n'est pas transférée à l'appelant [SWS_LOG_00263]. Si aucun modèle n'est disponible dans le système, la console fait office par défaut de puits (sink) pour toutes les sorties de journalisation [SWS_LOG_00263].

Gestion des erreurs et concurrence

Aucun code d'erreur spécifique n'est défini pour l'appel et aucune exception C++ n'est levée, car la fonction est spécifiée avec noexcept et désignée comme sûre face aux exceptions (exception safe) [SWS_LOG_00263]. En ce qui concerne la concurrence, CreateLogger est thread-safe, de sorte que la fonction peut être appelée de manière concurrente depuis plusieurs threads sans synchronisation externe [SWS_LOG_00263].

Interaction

Le framework de journalisation propose des surcharges étroitement apparentées : outre cette signature à deux paramètres, une surcharge permet la configuration supplémentaire d'un niveau de log par défaut via ctxDefLogLevel ([SWS_LOG_00021]). Une autre signature permet la création d'un objet Logger via un ara::core::InstanceSpecifier directement à partir du manifeste ([SWS_LOG_00256]).

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR.

Guide de l'implémenteur à venir (complexité 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#fa0177d6
Content hash
fa0177d6
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

fonction 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#3fc458a7
Content hash
3fc458a7
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

fonction 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#5d689040
Content hash
5d689040
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

fonction 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#9f230dfb
Content hash
9f230dfb
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

fonction 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#3e5de4c5
Content hash
3e5de4c5
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

fonction 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#614c7359
Content hash
614c7359
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

fonction 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#92a5a5de
Content hash
92a5a5de
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

fonction 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. .

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 728634d333ca Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction ara::log::EngFloatMax() du fichier d’en-tête ara/log/logger.h crée de manière synchrone une instance du type Format [SWS_LOG_00220]. L’objet renvoyé contient l’indication de formatage Fmt::kEngFloat pour l’affichage de nombres à virgule flottante en notation d’ingénieur ainsi qu’une précision suffisante pour une conversion aller-retour complète (« full round-trip safety ») [SWS_LOG_00220]. La fonction n’attend aucun paramètre.

Gestion des erreurs

La fonction est dotée du spécificateur noexcept et définie comme sûre vis-à-vis des exceptions (exception safe) [SWS_LOG_00220]. Il n’existe aucun code d’erreur spécifique, et aucune exception n’est levée ni aucune erreur transmise à des entités de diagnostic ou de notification d’erreurs. L’appel n’échoue pas en fonctionnement normal.

Concurrence et restrictions

La spécification caractérise la fonction comme thread-safe (thread-safe) [SWS_LOG_00220]. Grâce à la désignation en tant que constexpr, l’appel peut être évalué dès la compilation. Interprétation : comme la spécification ne définit aucune précondition et que la fonction est sans état, il ne devrait exister ni restrictions quant au contexte d’appel ni dépendances envers une initialisation préalable de l’infrastructure de journalisation. Question Q-90c67bfad5b19641 (ouverte)

Cette note d'utilisation a été générée par une IA sur la base de la spécification AUTOSAR Adaptive R25-11.

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

Record
AUTOSAR/AP/record/SWS_LOG_00220
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00220@rel:R25-11#22cf8f7c
Content hash
22cf8f7c
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

fonction 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#99a328f0
Content hash
99a328f0
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

fonction 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#3af64575
Content hash
3af64575
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

fonction 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.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 2ffe78f5109c Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction utilitaire HexFloat sert à créer un objet de formatage pour les nombres à virgule flottante en vue d'une sortie au format hexadécimal conformément à [SWS_LOG_00221]. Elle instancie un objet du type Format, pourvu de l'indication de formatage Fmt::kHexFloat ainsi que d'une précision prédéfinie.

Utilisation et paramètres

La fonction est disponible dans l'espace de noms ara::log via l'en-tête #include "ara/log/logger.h" [SWS_LOG_00221] :

  • Paramètres : comme paramètre d'entrée, precision de type std::uint16_t est transmis, ce qui définit la précision de sortie souhaitée [SWS_LOG_00221].
  • Valeur de retour : un objet Format initialisé avec le préfixe Fmt::kHexFloat défini [SWS_LOG_00221].
  • Exécution : grâce à la désignation comme constexpr, la construction de l'indication de formatage peut s'effectuer de manière synchrone au moment de l'exécution ou dès la compilation [SWS_LOG_00221].

Gestion des erreurs et concurrence

La signature est déclarée avec noexcept et est considérée comme totalement sûre vis-à-vis des exceptions (exception safe) [SWS_LOG_00221]. Aucun code d'erreur ni message d'erreur spécifique n'est généré. La fonction est spécifiée comme sûre pour les threads (thread-safe) et peut être appelée en parallèle depuis n'importe quel contexte sans nécessiter de synchronisation [SWS_LOG_00221].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification d'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#4e0973b2
Content hash
4e0973b2
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

fonction 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. .

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 98728cb410cd Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction HexFloatMax dans l’espace de noms ara::log sert à créer une instance de Format pour la sortie formatée de valeurs à virgule flottante [SWS_LOG_00222]. Elle est mise à disposition via le fichier d’en-tête #include "ara/log/logger.h" et ne prend aucun paramètre d’appel [SWS_LOG_00222]. Une instance de Format est fournie comme valeur de retour synchrone, dotée de l’indication de formatage Fmt::kHexFloat et présentant une précision qui garantit une sécurité round-trip complète [SWS_LOG_00222].

La signature est déclarée comme constexpr ainsi que noexcept [SWS_LOG_00222]. Cela permet une évaluation dès la compilation et garantit qu’aucune exception ne peut survenir lors de l’exécution. Aucun état d’erreur particulier, code d’erreur ou mécanisme de traitement des erreurs n’est spécifié pour cet appel, car la création de l’objet de format s’effectue toujours sans erreur.

Concernant le contexte d’appel et la concurrence, la fonction est spécifiée comme sûre vis-à-vis des exceptions (exception safe) et thread-safe (thread-safe) [SWS_LOG_00222]. Elle n’est soumise à aucune restriction d’appel séquentiel et peut être appelée en toute sécurité et de manière concurrente depuis des threads quelconques sans synchronisation supplémentaire.

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR pour R25-11.

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

Rückgabewert

TypBeschreibung
Formata Format instance

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

Record
AUTOSAR/AP/record/SWS_LOG_00222
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00222@rel:R25-11#06882075
Content hash
06882075
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

fonction 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
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 385124e3fb4e Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction ara::log::Oct() sert de fonction utilitaire pour créer un objet de formatage destiné aux sorties de journalisation en système octal [SWS_LOG_00213]. Elle n'accepte aucun paramètre et renvoie de manière synchrone un objet de type Format configuré avec l'indication de formatage Fmt::kOct ainsi qu'une précision par défaut [SWS_LOG_00213]. La fonction étant déclarée comme constexpr, l'instanciation peut s'effectuer dès la compilation. Interprétation : l'objet Format renvoyé devrait être principalement prévu pour contrôler le formatage d'entiers dans les flux de journalisation. Question Q-3f4fe5ac42de16cb (ouverte)

Gestion des erreurs

La fonction garantit la sécurité face aux exceptions (exception safe) et est explicitement déclarée comme noexcept [SWS_LOG_00213]. La survenue d'erreurs d'exécution ou la levée d'exceptions est exclue. Aucun code d'erreur spécifique n'existe et aucune notification n'est transmise à DET ou DEM.

Concurrence et restrictions

L'appel de Oct() est sans restriction sûr pour les threads (thread-safe) [SWS_LOG_00213]. Étant donné qu'aucun état partagé n'est modifié, la fonction n'est soumise à aucune restriction relative à la réentrance ou au contexte d'appel et peut être appelée en parallèle depuis plusieurs threads.

Interaction

La fonction est définie dans l'espace de nommage ara::log et mise à disposition via le fichier d'en-tête #include "ara/log/logger.h" [SWS_LOG_00213]. En plus de cette variante sans paramètre, il existe la surcharge Oct(std::uint16_t precision) permettant de définir une précision de chiffres différente [SWS_LOG_00214].

Cette note d'utilisation a été générée automatiquement à partir de la spécification 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#718da8d1
Content hash
718da8d1
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

fonction 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
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : acd78a533e1e Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction utilitaire ara::log::Oct est mise à disposition via le fichier d'en-tête #include "ara/log/logger.h" dans l'espace de noms ara::log [SWS_LOG_00214]. Elle sert à générer une instance du type Format avec l'indication de formatage Fmt::kOct ainsi qu'une précision prédéfinie [SWS_LOG_00214]. Comme paramètre d'entrée, la fonction accepte la valeur entière non signée 16 bits precision, qui définit la précision à appliquer [SWS_LOG_00214]. La fonction opère de manière synchrone et renvoie immédiatement l'instance Format générée [SWS_LOG_00214].

Gestion des erreurs et concurrence

La fonction est déclarée comme noexcept et expressément spécifiée comme sûre vis-à-vis des exceptions (exception safe) [SWS_LOG_00214]. Il n'existe ni codes d'erreur spécifiques ni notifications via DET ou DEM en cas d'erreur. Concernant le contexte d'appel et la concurrence, la fonction est classée comme sûre pour les threads (thread-safe) [SWS_LOG_00214]. Comme elle est en outre définie comme constexpr, la génération de l'instruction de formatage peut avoir lieu dès la compilation [SWS_LOG_00214].

Interaction

Au sein du module log, la fonction complète la surcharge apparentée Oct() [SWS_LOG_00213]. Alors que la variante sans paramètre construit une instance Format avec la précision par défaut (default precision) [SWS_LOG_00213], la présente fonction permet la configuration explicite d'une précision spécifique à l'utilisateur pour le formatage octal [SWS_LOG_00214].

Ce texte a été généré par une IA sur la base de la spécification AUTOSAR.

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

Parameter (in)

ParameterBeschreibung
precisionthe precision to use

Rückgabewert

TypBeschreibung
Formata Format instance

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

Record
AUTOSAR/AP/record/SWS_LOG_00214
Status
valid/auto-approved
Version
AUTOSAR/AP/record/SWS_LOG_00214@rel:R25-11#16f58952
Content hash
16f58952
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

fonction 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
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 240d7b239d7a Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction RegisterConnectionStateHandler dans l’espace de noms ara::log sert à enregistrer une fonction de rappel côté application, qui est appelée à chaque changement de l’état de connexion [SWS_LOG_00205]. Elle est déclarée dans l’en-tête ara/log/logger.h [SWS_LOG_00205]. Un objet fonction callback de type ConnectionStateHandler est transmis en paramètre [SWS_LOG_00205], lequel est spécifié comme alias de type pour std::function<void(ClientState)> [SWS_LOG_00265]. Aucune valeur de retour n’est présente (void) [SWS_LOG_00205].

En ce qui concerne le cycle de vie et l’ordonnancement, il est établi qu’un seul gestionnaire d’état peut être installé à tout moment [SWS_LOG_00205]. Si une fonction de rappel a déjà été enregistrée auparavant, chaque nouvel appel écrase complètement l’instance existante, de sorte qu’à partir de ce moment, seul le dernier gestionnaire transmis est exécuté [SWS_LOG_00205].

La fonction est déclarée avec noexcept et spécifiée comme sûre vis-à-vis des exceptions (« exception safe ») [SWS_LOG_00205]. Aucun code d’erreur spécifique, aucune valeur d’erreur ni aucune notification à des moniteurs d’erreur ou de diagnostic n’est défini dans la spécification [SWS_LOG_00205].

En ce qui concerne la concurrence, RegisterConnectionStateHandler est expressément classée comme non thread-safe (« not thread-safe ») [SWS_LOG_00205]. L’enregistrement ne doit donc pas être appelé de manière concurrente non protégée depuis plusieurs threads et devrait idéalement avoir lieu pendant la phase d’initialisation. À l’inverse, l’alias de type ConnectionStateHandler est spécifié comme thread-safe [SWS_LOG_00265]. Interprétation : il devrait en résulter que le callback enregistré peut potentiellement être appelé depuis des contextes concurrents par l’environnement d’exécution de journalisation interne lors de changements d’état. Question Q-59eae7980ba48666 (ouverte)

Ce texte a été rédigé par une IA et est basé sur les spécifications de la version AUTOSAR R25-11.

Guide de l'implémenteur à venir (complexité 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#432954b7
Content hash
432954b7
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

fonction 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#779fa88b
Content hash
779fa88b
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

fonction 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#d34b8c04
Content hash
d34b8c04
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

fonction 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#e64a9547
Content hash
e64a9547
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

fonction 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#e9ebd69e
Content hash
e9ebd69e
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

fonction 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#47888d0c
Content hash
47888d0c
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