fonction 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
La fonction membre Flush de la classe ara::log::LogStream (mise à disposition via le fichier d'en-tête ara/log/log_stream.h) transmet l'état actuel du tampon de journalisation au framework de journalisation et initie simultanément un nouveau flux de messages [SWS_LOG_00039]. Il convient ici de noter la distinction selon laquelle l'appel de ara::log::LogStream::Flush ne vide pas le tampon, mais transfère ses données actuelles sans modification au framework [SWS_LOG_00039].
Un appel explicite de la fonction n'est requis que si l'objet ara::log::LogStream doit être réutilisé au sein de la même portée pour des sorties de journalisation ultérieures [SWS_LOG_00039]. En revanche, si l'objet quitte sa portée – par exemple en atteignant la fin d'un bloc de fonction –, l'envoi du tampon s'effectue automatiquement en interne via le destructeur de la classe [SWS_LOG_00039].
La méthode possède la signature void Flush () noexcept;, n'accepte aucun argument et ne possède aucune valeur de retour [SWS_LOG_00039]. Elle est désignée comme sûre du point de vue des exceptions (« exception safe »), mais n'offre aucune sécurité des threads (« not thread-safe ») [SWS_LOG_00039].
Cette note d'utilisation a été générée par une IA sur la base de la spécification R25-11.
| 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#6ccdbe5b- Content hash
6ccdbe5b- 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-low· 2026-10-13 · Original allemand