함수 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.
사용법 및 호출 컨텍스트
apext::log 네임스페이스의 템플릿 함수 TraceArti은(는) 각각 연결된 추적 도구에 특정한 모델링된 메시지를 처리하는 데 사용됩니다 [SWS_LOG_20000]. 이 함수는 추적 도구에 대한 인터페이스 역할을 하며 애플리케이션 코드에서 직접 호출하도록 의도된 것이 아니라, 로깅과 TraceArti 사이를 전환할 때 로거 프레임워크에 의해 내부적으로만 호출됩니다 [SWS_LOG_20000]. 매개변수로서 이 함수는 msg_id를 통해 구현별 타입의 메시지 식별 객체를 전달받고, 매개변수 팩 params를 통해 메시지의 인수를 전달받으며, 반환값은 정의되어 있지 않습니다 [SWS_LOG_20000].
동시성, 오류 처리 및 런타임 동작
이 인터페이스는 스레드 안전(thread-safe)하며 예외 안전(noexcept에 의한 exception safe)한 것으로 명시되어 있습니다 [SWS_LOG_20000]. 특정 오류 코드나 오류 보고 메커니즘이 존재하지 않으므로, 함수는 예외를 완전히 배제해야 합니다 [SWS_LOG_20000].
TraceArti의 런타임 오버헤드는 가능한 한 최소화해야 합니다 [SWS_LOG_20000]. 이를 위해 사양에서는 템플릿 매개변수 MsgId에 따른 특수화를 해결 방안으로 명시적으로 언급합니다 [SWS_LOG_20000]. 해석: 추적 도구 연결의 경우 이는 메시지별 처리 로직을 가급적 템플릿 특수화를 통해 컴파일 시점에 최적화해야 함을 의미할 수 있습니다. 질문 Q-24ea7f9557ada827 (열림)
이 사용 지침은 R25-11용 AUTOSAR 명세를 바탕으로 자동으로 작성되었습니다.
구현자 가이드 준비 중 (복잡도 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#5aa830fe- Content hash
5aa830fe- 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 · 독일어 원문