SNIP_CLASSIC_DLT_SECTION_7_1_9_3_Select_target_LogChannel
Wortlaut
7.1.9.3 Select target LogChannel
In this step, the Dlt module identifies on which LogChannel(s) the log or trace message will be transmitted.
[SWS_Dlt_00664] ⌈For LogChannel selection the Dlt module manages LogChannel to DltSwcApplicationId/DltSwcContextId tuple mappings. (see configuration parameter DltLogChannelAssignmentSwcContextRef).⌋ Note: There can be several LogChannels configured for a given DltSwcApplicationId/DltSwcContextId tuple contained in a Dlt_SendLogMessage or Dlt_SendTraceMessage call.
[SWS_Dlt_00665] ⌈To find the matching LogChannels for the DltSwcApplicationId/DltSwcContextId tuple contained in a Dlt_SendLogMessage or Dlt_SendTraceMessage call, the Dlt module shall do the following steps:
• From all mapping elements, where DltSwcApplicationId/DltSwcContextId tuple of mapping element equals to the DltSwcApplicationId/DltSwcContextId tuple of the log/trace message, the LogChannel shall be added to the list of output LogChannels.
• From all mapping elements, where ApplicationID of mapping element equals to the ApplicationID of the log/trace message AND the ContextId of mapping element equals wildcard (value 0x00000000), the LogChannel shall be added to the list of output LogChannels.
• If the list of output LogChannels is still empty after step 1 and 2. The default Log Channel (see configuration parameter DltDefaultLogChannelRef) shall be added to the list of output LogChannels.
⌋
Begründung & Zuweisungs-Evidenz
Evidence from SWS_DiagnosticLogAndTrace (7.1.9.3 Select target LogChannel).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_DiagnosticLogAndTrace.pdf |
|---|---|
| Dokumentseite | Seite 32 |
| Ziel-Modul | diagnostics (classic) |
| Ziel-Anforderung | – |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.85 |