functie TraceArti [SWS_LOG_20000] Upstream: RS_LT_00003
template <typename MsgId, typename... Params> void TraceArti (const MsgId &msg_id, const Params &... params) noexcept;
Handles a modeled message, specific to the used trace tool. This function is only called internally by the Logger framework when switching between Log and TraceArti. It represents the interface to trace tools. The runtime overhead of this function shall be kept as minimal as possible, e.g. by using specializations based on the MsgId.
Gebruik en aanroepcontext
De templatefunctie TraceArti in de namespace apext::log dient voor de verwerking van gemodelleerde berichten specifiek voor de telkens aangesloten traceertool [SWS_LOG_20000]. Deze fungeert als interface naar traceertools en is niet bedoeld voor directe aanroep door applicatiecode, maar wordt uitsluitend intern door het logger-framework aangeroepen wanneer er wordt gewisseld tussen logging en TraceArti [SWS_LOG_20000]. Als parameters accepteert de functie via msg_id een berichtidentificerend object van een implementatiespecifiek type en via het parameterpack params de argumenten van het bericht; een retourwaarde is niet gedefinieerd [SWS_LOG_20000].
Gelijktijdigheid, foutafhandeling en runtimegedrag
De interface is gespecificeerd als thread-veilig (thread-safe) en uitzonderingsveilig (exception safe door noexcept) [SWS_LOG_20000]. Specifieke foutcodes of mechanismen voor foutmelding bestaan niet, zodat de functie uitzonderingen volledig moet uitsluiten [SWS_LOG_20000].
De runtime-overhead van TraceArti dient zo minimaal mogelijk te worden gehouden [SWS_LOG_20000]. Hiervoor noemt de specificatie expliciet specialisaties aan de hand van de templateparameter MsgId als mogelijke oplossing [SWS_LOG_20000]. Interpretatie: Voor de aansluiting van een traceertool betekent dit vermoedelijk dat berichtspecifieke verwerkingslogica bij voorkeur compileertijdelijk via templatespecialisaties moet worden geoptimaliseerd. Vraag Q-24ea7f9557ada827 (open)
Deze gebruiksinstructie is geautomatiseerd opgesteld op basis van de AUTOSAR-specificatie voor R25-11.
Implementer's Guide volgt (complexiteit I1)
| Header-Datei | #include "apext/log/trace_arti.h" |
|---|---|
| Scope | namespace apext::log |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Template-Parameter
| Parameter | Beschreibung |
|---|---|
| MsgIdParams | the type of the msg_id parameter the types of the params parameters |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| msg_id | an implementation-defined type identifying the message object |
| params | the arguments of the message |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_LOG_20000- Status
- valid/auto-approved
- Version
AUTOSAR/AP/record/SWS_LOG_20000@rel:R25-11#9b5759dd- Content hash
9b5759dd- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_20000
Status: valid/auto-approved
Version: rel:R25-11#5511a3f8
Versionshistorie & Revisions (2 transitions, 4 revision)
- Current State
valid/auto-approved- Reason
- unchanged
- Campaign
2026-08-sws-log-pilot-after-tool-improvement- Active Version
AUTOSAR/AP/record/SWS_LOG_20000@rel:R25-11#5511a3f8
Recorded Revisions (4):
- R25-11
rel:R25-11#4e0ac6b92026-09-30 - R23-11
rel:R23-11#ab5e92c82026-10-14 - R24-11
rel:R24-11#5511a3f82026-10-14 - R25-11
rel:R25-11#5511a3f82026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-10 | tool | valid/unversioned → invalid/obsolete | spec update after tool improvement | 2026-08-sws-log-pilot-after-tool-improvement |
| 2026-08-10 | tool | invalid/obsolete → valid/auto-approved | unchanged | 2026-08-sws-log-pilot-after-tool-improvement |
gemini-3.8-flash-low· 2026-10-13 · Duits origineel