function Flush [SWS_LOG_00039] Upstream: RS_LT_00003, RS_LT_00049
void Flush () noexcept;
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.
Validate requirementfunction Flush [SWS_LOG_00039] Upstream: RS_LT_00003 , 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.
Sends out the current log buffer and initiates a new message stream. Note: Calling ara::log::LogStream::Flush is only necessary if the ara::log::LogStream object is going to be re-used within the same scope. Otherwise, if the object goes out of scope (e.g. end of function block) then the flushing operation will be done internally by the destructor. It is important to note that the ara::log::LogStream::Flush command does not empty the buffer, but it forwards the buffer’s current contents to the Logging framework.Prüfkontext
Die Elementfunktion Flush der Klasse ara::log::LogStream (bereitgestellt über die Header-Datei ara/log/log_stream.h) übermittelt den aktuellen Zustand des Log-Puffers an das Logging-Framework und leitet zugleich einen neuen Nachrichtenstrom ein [SWS_LOG_00039]. Wichtig ist hierbei die Unterscheidung, dass der Aufruf von ara::log::LogStream::Flush den Puffer nicht leert, sondern dessen aktuelle Daten unverändert an das Framework weiterleitet [SWS_LOG_00039].
Ein expliziter Aufruf der Funktion ist nur dann erforderlich, wenn das ara::log::LogStream-Objekt innerhalb desselben Gültigkeitsbereichs für nachfolgende Log-Ausgaben wiederverwendet werden soll [SWS_LOG_00039]. Sofern das Objekt hingegen seinen Gültigkeitsbereich verlässt – etwa beim Erreichen des Endes eines Funktionsblocks –, erfolgt das Absenden des Puffers automatisch intern über den Destruktor der Klasse [SWS_LOG_00039].
Die Methode besitzt die Signatur void Flush () noexcept;, nimmt keine Argumente an und besitzt keinen Rückgabewert [SWS_LOG_00039]. Sie ist als ausnahmesicher („exception safe“) gekennzeichnet, bietet jedoch keine Thread-Sicherheit („not thread-safe“) [SWS_LOG_00039].
Dieser Verwendungshinweis wurde von einer KI auf Basis der Spezifikation R25-11 generiert.
| Header-Datei | #include "ara/log/log_stream.h" |
|---|---|
| Scope | class ara::log::LogStream |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
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_00039- Status
- valid/auto-approved
- Version
AUTOSAR/AP/record/SWS_LOG_00039@rel:R25-11#57455c37- Content hash
57455c37- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_00039
Status: valid/auto-approved
Version: rel:R25-11#13a1717f
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_00039@rel:R25-11#13a1717f
Recorded Revisions (8):
- R25-11
rel:R25-11#57455c372026-09-30 - R19-11
rel:R19-11#1f1e47ec2026-10-14 - R20-11
rel:R20-11#fd1f4b762026-10-14 - R21-11
rel:R21-11#fd1f4b762026-10-14 - R22-11
rel:R22-11#4c987cfb2026-10-14 - R23-11
rel:R23-11#91bc2c892026-10-14 - R24-11
rel:R24-11#13a1717f2026-10-14 - R25-11
rel:R25-11#13a1717f2026-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 |
| 2026-08-10T14:00:00Z | assistant | none → valid/auto-approved | Überführung vorhandener Prosa-Beschreibung in requirement_text-Format | legacy-desc-import |
gemini-3.8-flash-medium· 2026-10-13