Enables the creation of logging contexts, formatted message streams, and client state monitoring.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: aad9146dd3feProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
Enables the creation of logging contexts, formatted message streams, and client state monitoring.
The namespace ara::log provides adaptive logging services by managing context loggers and outputting typed message streams to sinks such as the DLT backend or the console [SWS_LOG_00021]. Applications obtain loggers via factory functions, prepare formatted payload data via argument wrappers, and feed data into log messages in a thread-safe manner. As an essential constraint, ownership of all logger instances remains with the framework, whereas registration of the connection state handler is explicitly not thread-safe [SWS_LOG_00205].
Context
The namespace ara::log provides the central logging infrastructure for adaptive applications. Its core responsibilities include managing logging contexts via class Logger, structured creation of log messages via LogStream, and typed passing of formatted payload data via Argument and Format. The framework acts as a link between application-side log calls and target sinks: the DLT (Diagnostic Log and Trace) backend serves as the primary sink, whose connectivity status is represented via the enumeration ClientState[SWS_LOG_00098]. If no model is available, the console acts as the sink by default [SWS_LOG_00021]. Status changes of external peers can be monitored via callback functions of type ConnectionStateHandler[SWS_LOG_00265].
Context diagram: Interaction partners of the logging framework between application, console, DLT backend, and external client. Sources: [SWS_LOG_00021], [SWS_LOG_00098], [SWS_LOG_00205].
Lifecycle
Instances of Logger are not constructed directly by the application, but instantiated by the factory functions CreateLogger and registered in the logging framework [SWS_LOG_00021], [SWS_LOG_00263]. Ownership is explicitly defined: ownership remains entirely with the logging framework ("Ownership stays within the Logging framework"), which issues references (Logger&) to the caller [SWS_LOG_00021]. Alternatively, creation can be model-based using an ara::core::InstanceSpecifier[SWS_LOG_00256]. Interpretation: Since the framework retains ownership, the lifetime of registered loggers is likely bound to the parent process. Question Q-4b81e462cf2e43b1 (open)
Regarding concurrency, logger creation via CreateLogger is specified to be thread-safe [SWS_LOG_00021]. In contrast, the registration of connection state handlers via RegisterConnectionStateHandler is explicitly not thread-safe ("not thread-safe") [SWS_LOG_00205]; it must therefore typically be performed during the initialization phase prior to starting concurrent activities. Furthermore, only a single handler can be active at any time; re-registration immediately replaces previous callbacks [SWS_LOG_00205]. The connection lifecycle of external peers passes through the stages kUnknown (DLT backend not yet active), kNotConnected, and kConnected[SWS_LOG_00098].
Usage Path
The regular sequence includes configuring monitoring, obtaining the logger, and outputting formatted messages:
Registration of the connection callback using RegisterConnectionStateHandler[SWS_LOG_00205].
Obtaining the Logger reference via CreateLogger by specifying a context ID, a description, and optionally a default severity from LogLevel (e.g., kWarn or kInfo) [SWS_LOG_00018], [SWS_LOG_00021].
The functions of the namespace are largely declared with noexcept and provide no-throw guarantees, but are subject to strict preconditions and violation rules:
Manifest violations: When creating a logger based on a model via CreateLogger(const ara::core::InstanceSpecifier&), specific runtime violations can be triggered: InstanceSpecifierMappingIntegrityViolation (specifier cannot be resolved in the model or does not reference a PortPrototype), PortInterfaceMappingViolation (mapping type does not match the expected PortInterface), ProcessMappingViolation (no matching process found), and InstanceSpecifierAlreadyInUseViolation (specifier is already used in the process) [SWS_LOG_00256].
Invalid argument typing: The call to Arg is syntactically invalid ("ill-formed") if the type T is neither an arithmetic type nor bool and cannot be converted into either ara::core::StringView or ara::core::Span<const ara::core::Byte>. Likewise, passing a unit string other than nullptrunit for strings, byte spans, or boolean types results in an error [SWS_LOG_00201].
Error representation: When outputting a core::ErrorCode instance to the console, the error code is formatted in an implementation-specific way, where the domain name (ErrorCode::Domain().Name()) and the integral error number must be included [SWS_LOG_00124].
This guide is based on the specification of the log module in Adaptive Platform release R25-11.
KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.
Class diagram
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.
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.
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.
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;
= -1 DLT back-end not up and running yet, state cannot be determined.
kNotConnected
No remote client detected.
kConnected
Remote client is connected.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b76d16a569dcProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The enumeration ara::log::ClientState represents the current connection status of an external client to the DLT backend [SWS_LOG_00098]. It is based on data type std::int8_t and is included via header file #include "ara/log/common.h" or forwarding header #include "ara/log/log_fwd.h"[SWS_LOG_00098].
States and semantics
The enumeration defines three discrete connection states [SWS_LOG_00098]:
kUnknown (-1): The DLT backend is not yet operational; the actual connection status cannot be determined at this point in time [SWS_LOG_00098].
kNotConnected: No external client has been detected [SWS_LOG_00098].
kConnected: A remote client is successfully connected [SWS_LOG_00098].
Interaction and Concurrency
The enumeration serves primarily as a parameter for function callback ConnectionStateHandler (defined as std::function<void(ClientState)>), which is registered via ara::log::RegisterConnectionStateHandler[SWS_LOG_00265]. This handler is declared as thread-safe [SWS_LOG_00265]. Interpretation: Registered handlers are likely called asynchronously as soon as the DLT backend detects state changes of the external client. Question Q-b78ef73772a658a2 (open)
This text was generated by an AI based on the AUTOSAR specification R25-11.
Implementer's Guide to follow (complexity I1)
Request a governed re-review of this record. The record is not changed immediately.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 61bab347af38ProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The type alias ConnectionStateHandler specifies the signature for callback functions for monitoring the connection status in module log[SWS_LOG_00265]. It is declared in namespace ara::log and requires including the header file ara/log/logger.h[SWS_LOG_00265]. As a function wrapper std::function<void(ClientState)>, the callback routine accepts the resulting connection state via the parameter of type ClientState and provides no return value [SWS_LOG_00265].
Usage takes place via the registration function RegisterConnectionStateHandler[SWS_LOG_00205]. The following requirements apply to the interaction and lifecycle of the handler:
Invocation timing: The registered callback function is called every time the client's connection state changes [SWS_LOG_00205].
Exclusivity: Only a single handler can be actively registered at any given time [SWS_LOG_00205]. If a callback was already registered previously, the newly passed function replaces it completely, so that going forward only the new handler is called [SWS_LOG_00205].
Exception safety: The registration function RegisterConnectionStateHandler is specified with noexcept, ensuring that passing the function callback is exception safe [SWS_LOG_00205].
Regarding concurrency, the specification element is marked as thread-safe [SWS_LOG_00265]. Interpretation: Since state changes are potentially signaled asynchronously by the logging infrastructure, the application logic provided in the handler is likely required to be designed reentrantly and perform no blocking operations in order not to obstruct the communication context. Question Q-ca507d992cc31284 (open)
This usage note was generated automatically based on AUTOSAR specification R25-11.
Implementer's Guide to follow (complexity I1)
Request a governed re-review of this record. The record is not changed immediately.
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"
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
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.
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
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d61f94356eb8Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
use
The function CreateLogger in namespace ara::log serves to create and register a Logger object, which manages the respective context within the logging framework [SWS_LOG_00021]. Upon invocation, context identifier ctxId, textual description ctxDescription, and default log level ctxDefLogLevel are passed [SWS_LOG_00021]. If no model is available, the framework redirects output to the console as a sink by default [SWS_LOG_00021].
The function returns a reference Logger & to the internally managed instance. Ownership remains entirely with the logging framework [SWS_LOG_00021].
Concurrency and Execution Safety
The interface is declared as noexcept and specified as both exception safe and thread-safe [SWS_LOG_00021]. It can thus be safely called from multiple concurrent threads.
Interaction and Alternatives
Related interfaces are available for different configuration approaches:
An alternative overload allows instantiation using only ctxId and ctxDescription[SWS_LOG_00263], implicitly using Warning as the default log level [SWS_LOG_00021].
In addition, a Logger can be derived model-based via an ara::core::InstanceSpecifier from the manifest [SWS_LOG_00256]. In doing so, the platform checks for errors such as InstanceSpecifierMappingIntegrityViolation or PortInterfaceMappingViolation[SWS_LOG_00256].
This text was generated by an AI based on specification documents of AUTOSAR R25-11.
Creates a Logger object derived from the manifest.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 27922916bcc4Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The synchronous function CreateLogger creates or returns a reference to an internally managed Logger object based on the model data of the manifest [SWS_LOG_00256]. A reference to an ara::core::InstanceSpecifier, which identifies the desired model element in the context of the running process, serves as invocation parameter [SWS_LOG_00256].
The function is declared as noexcept, is considered exception safe (exception safe), and is specified as thread-safe so that calls can occur reentrantly and concurrently [SWS_LOG_00256]. For erroneous configurations or invalid model contexts, the specification defines several violations (Violations) [SWS_LOG_00256]:
InstanceSpecifierMappingIntegrityViolation: Occurs when the InstanceSpecifier cannot be resolved in the context of the executable or refers to an element other than an PortPrototype[SWS_LOG_00256].
PortInterfaceMappingViolation: Triggered if the mapping type does not correspond to the expected type of the port interface [SWS_LOG_00256].
ProcessMappingViolation: Takes effect when a matching InstanceRef exists, but no modeled process matches the runtime process [SWS_LOG_00256].
InstanceSpecifierAlreadyInUseViolation: Signals that a constructor in the framework was called with an identifier that is already in use in this process [SWS_LOG_00256].
Compared to overloads [SWS_LOG_00021] and [SWS_LOG_00263], which initialize loggers programmatically via context IDs and description strings and, in the absence of a model, use the console as a sink by default, configuration here is completely manifest-driven. In all variants, ownership of the instance remains within the logging framework [SWS_LOG_00263].
This text was curated by an AI and is based on the specifications of the AUTOSAR specification.
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.
Creates a Logger object, holding the context which is registered in the Logging framework. If no model is available the sink shall be the console per default.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e7acfbf050b9Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
Function CreateLogger in namespace ara::log ([SWS_LOG_00263]) serves to create and register a context-bound Logger object within the logging framework of AUTOSAR Adaptive.
use
Via header file ara/log/logger.h, the function accepts the context identifier ctxId as well as the detailed description ctxDescription, each as type ara::core::StringView[SWS_LOG_00263]. As a return value, the call returns a reference Logger & to the internally managed instance of the created Logger object [SWS_LOG_00263]. Ownership of this instance remains permanently with the logging framework and is not transferred to the caller [SWS_LOG_00263]. If no model is available in the system, the console functions by default as a sink for all logging output [SWS_LOG_00263].
Error Handling and Concurrency
No specific error codes are defined for the invocation and no C++ exceptions are thrown, as the function is specified with noexcept and designated as exception safe [SWS_LOG_00263]. In terms of concurrency, CreateLogger is thread-safe, so the function can be called concurrently from multiple threads without external synchronization [SWS_LOG_00263].
Interaction
The logging framework offers closely related overloads: In addition to this two-parameter signature, an overload allows the additional configuration of a default log level via ctxDefLogLevel ([SWS_LOG_00021]). A further signature enables the creation of a Logger object via an ara::core::InstanceSpecifier directly from the manifest ([SWS_LOG_00256]).
This usage note was generated automatically based on the AUTOSAR specification.
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
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
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
Create a Format instance with Fmt::kEngFloat formatting hint and a precision that is sufficient for full round-trip safety. .
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 728634d333caProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
use
The function ara::log::EngFloatMax() from the header file ara/log/logger.h synchronously creates an instance of type Format[SWS_LOG_00220]. The returned object contains the formatting hint Fmt::kEngFloat for outputting floating-point numbers in engineering notation as well as a precision sufficient for full round-trip safety [SWS_LOG_00220]. The function expects no parameters.
Error handling
The function is provided with the specifier noexcept and defined as exception safe (exception safe) [SWS_LOG_00220]. No specific error codes exist, and neither exceptions are thrown nor errors transmitted to diagnostic or error reporting entities. The call does not fail in regular operation.
Concurrency and Limitations
The specification designates the function as thread-safe (thread-safe) [SWS_LOG_00220]. Thanks to the designation as constexpr, the call can already be evaluated at compile time. Interpretation: Since the specification defines no preconditions and the function is stateless, there are likely to be neither restrictions regarding the call context nor dependencies on a prior initialization of the logging infrastructure. Question Q-90c67bfad5b19641 (open)
This usage note was generated by an AI based on the specification AUTOSAR Adaptive R25-11.
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
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
Create a Format instance with Fmt::kHexFloat formatting hint and given precision.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2ffe78f5109cProvenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The helper function HexFloat serves to create a formatting object for floating-point numbers for output in hexadecimal format according to [SWS_LOG_00221]. It instantiates an object of type Format that is provided with the formatting hint Fmt::kHexFloat as well as a specified precision.
Usage and Parameters
The function is available in namespace ara::log via header #include "ara/log/logger.h"[SWS_LOG_00221]:
Parameters: As input parameter, precision of type std::uint16_t is passed, which specifies the desired output precision [SWS_LOG_00221].
Return value: An initialized Format object with set Fmt::kHexFloat prefix [SWS_LOG_00221].
Execution: By being marked as constexpr, construction of the formatting hint can occur synchronously at runtime or already at compile time [SWS_LOG_00221].
Error Handling and Concurrency
The signature is declared with noexcept and is considered completely exception-safe (exception safe) [SWS_LOG_00221]. Neither error codes nor specific error messages are generated. The function is specified as thread-safe (thread-safe) and can be invoked concurrently from arbitrary contexts without synchronization overhead [SWS_LOG_00221].
This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.
Create a Format instance with Fmt::kHexFloat formatting hint and a precision that is sufficient for full round-trip safety. .
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 98728cb410cdProvenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The function HexFloatMax in namespace ara::log serves to create a Format instance for the formatted output of floating-point values [SWS_LOG_00222]. It is provided via the header file #include "ara/log/logger.h" and takes no call parameters [SWS_LOG_00222]. As a synchronous return value, a Format instance is returned, which is provided with the formatting hint Fmt::kHexFloat and has a precision that ensures full round-trip safety [SWS_LOG_00222].
The signature is declared as constexpr as well as noexcept[SWS_LOG_00222]. This permits evaluation already at compile time and guarantees that no exceptions can occur during execution. Special error states, error codes, or mechanisms for error handling are not specified for this call, as creation of the format object always takes place without error.
Regarding the call context and concurrency, the function is specified as exception safe (exception safe) and thread-safe (thread-safe) [SWS_LOG_00222]. It is subject to no sequential call restrictions and can be called safely and concurrently from arbitrary threads without additional synchronization.
This usage note was generated automatically based on the AUTOSAR specification for R25-11.
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
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 385124e3fb4eProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
use
The function ara::log::Oct() serves as a helper function for creating a formatting object for logging output in the octal system [SWS_LOG_00213]. It takes no parameters and synchronously returns an object of type Format configured with the formatting hint Fmt::kOct and a default precision [SWS_LOG_00213]. Since the function is declared as constexpr, the instantiation can already take place at compile time. Interpretation: The returned Format object is likely primarily intended for controlling the formatting of integers in log streams. Question Q-3f4fe5ac42de16cb (open)
Error handling
The function guarantees exception safety (exception safe) and is explicitly declared as noexcept[SWS_LOG_00213]. The occurrence of runtime errors or the throwing of exceptions is excluded. Specific error codes do not exist, and no notifications are sent to DET or DEM.
Concurrency and Limitations
Calling Oct() is unconditionally thread-safe (thread-safe) [SWS_LOG_00213]. Because no shared states are modified, the function is not subject to any constraints regarding reentrancy or call context and can be called concurrently from multiple threads.
Interaction
The function is defined in namespace ara::log and provided via header file #include "ara/log/logger.h"[SWS_LOG_00213]. In addition to this parameterless variant, the overload Oct(std::uint16_t precision) exists, via which a different precision can be specified [SWS_LOG_00214].
This usage note was generated automatically based on the AUTOSAR specification.
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
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: acd78a533e1eProvenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
use
The helper function ara::log::Oct is provided via the header file #include "ara/log/logger.h" in namespace ara::log[SWS_LOG_00214]. It serves to create an instance of type Format with the formatting hint Fmt::kOct as well as a specified precision [SWS_LOG_00214]. As an input parameter, the function accepts the unsigned 16-bit integer value precision, which specifies the precision to be applied [SWS_LOG_00214]. The function operates synchronously and returns the created Format instance immediately [SWS_LOG_00214].
Error Handling and Concurrency
The function is declared as noexcept and explicitly specified as exception-safe (exception safe) [SWS_LOG_00214]. Neither specific error codes nor notifications via DET or DEM exist in case of an error. Regarding call context and concurrency, the function is classified as thread-safe (thread-safe) [SWS_LOG_00214]. Because it is also defined as constexpr, the creation of the formatting instruction can already occur at compile time [SWS_LOG_00214].
Interaction
Within module log, the function complements the related overload Oct()[SWS_LOG_00213]. While the parameterless variant constructs a Format instance with default precision (default precision) [SWS_LOG_00213], the present function allows the explicit configuration of a user-specific precision for octal formatting [SWS_LOG_00214].
This text was generated by an AI based on the AUTOSAR specification.
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.
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
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 240d7b239d7aProvenanceOpen questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
The function RegisterConnectionStateHandler in namespace ara::log serves to register an application-side callback function that is called upon every change of the connection state [SWS_LOG_00205]. It is declared in header ara/log/logger.h[SWS_LOG_00205]. A function object callback of type ConnectionStateHandler is passed as a parameter [SWS_LOG_00205], which is specified as a type alias for std::function<void(ClientState)>[SWS_LOG_00265]. A return value is not present (void) [SWS_LOG_00205].
Regarding lifecycle and sequencing, it is specified that only a single state handler can be installed at any point in time [SWS_LOG_00205]. If a callback function was already registered previously, every renewed call completely overwrites the existing instance, so that from this point on exclusively the handler passed last is executed [SWS_LOG_00205].
The function is declared with noexcept and specified as exception-safe [SWS_LOG_00205]. Specific error codes, error values, or notifications to error or diagnostic monitors are not defined in the specification [SWS_LOG_00205].
Regarding concurrency, RegisterConnectionStateHandler is explicitly classified as not thread-safe [SWS_LOG_00205]. The registration must therefore not be called unprotected concurrently from multiple threads and should ideally take place during the initialization phase. In contrast, the type alias ConnectionStateHandler is specified as thread-safe [SWS_LOG_00265]. Interpretation: From this, it is likely to follow that the registered callback can potentially be called from concurrent contexts by the internal logging runtime environment upon state changes. Question Q-59eae7980ba48666 (open)
This text was created by an AI and is based on the specifications of AUTOSAR release R25-11.
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
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.
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
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
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
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
gemini-3.8-flash-low· 2026-10-13 · German original