Log Frontend Detailed Design#
Description#
The C++ frontend of mw::log provides the logging API (Logger,
LogStream and the Log*() free functions), the configuration handling
and the recorder creation. The backends implement the Recorder interface and
register themselves in the backend table. This page links the diagrams of the
C++ design to the component requirements. The explanation of the diagrams is in
the pages below.
Detailed Design - overview of the units and the logging flow.
Low Level Design of the Configuration and Initialization for mw::log - configuration files and the recorder creation.
Registry Aware Recorder Factory - backend registration.
Dependency graph - dependencies between frontend and backends.
Dynamic backend loading for mw::log - dynamic loading of backends.
Design Decisions - design decisions.
Rationale Behind Decomposition into Units#
The frontend is separated from the implementation details of the backends. The
frontend depends only on the Recorder and IRecorderFactory interfaces,
so that a backend can be added or removed at link time without changing the
frontend. The units are the folders and files of score/mw/log, for example
configuration, detail and detail/text_recorder.
Static Diagrams for Unit Interactions#
Log C++ configuration class diagram
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ recorders class diagram
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ console logging class diagram
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ frontend dependency graph
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ backend registration component diagram
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Dynamic Diagrams for Unit Interactions#
Log C++ configuration sequence
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ backend registration and recorder creation
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ recorder factory decision flow
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ slot allocation
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ slot drainer sequence
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ slot drainer flush
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||
Log C++ wait-free stack push
|
status: valid
security: NO
safety: ASIL_B
|
||||
|
|||||