forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#1345 Add sequence diagram for LogStrem logging
- Loading branch information
1 parent
2816ec6
commit 53be9c3
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@startuml | ||
|
||
participant User | ||
participant LogStream | ||
participant "iox::log" as logFreeFunction << free function >> | ||
participant Logger << static >> | ||
participant "logger : DefaultLogger" as DefaultLogger | ||
|
||
User -> LogStream ** : IOX_LOG(...) | ||
activate LogStream | ||
LogStream -> logFreeFunction ++ : getLogger | ||
logFreeFunction -> Logger ++ : get <<private>> | ||
Logger -> Logger ++ : activeLogger() | ||
note right | ||
activeLogger is only called | ||
to initialize the thread local | ||
logger pointer or when the | ||
active flag of the logger is false | ||
end note | ||
|
||
Logger -> Logger : std::lock | ||
Logger -> DefaultLogger ** | ||
|
||
return | ||
return | ||
return | ||
|
||
LogStream -> DefaultLogger ++ : setupNewLogMessage | ||
return | ||
|
||
return | ||
|
||
User -> LogStream ++ : << Hello World | ||
LogStream -> DefaultLogger ++ : logString | ||
return | ||
return | ||
|
||
User -> LogStream ++ : dTor via ; on temporary | ||
LogStream -> DefaultLogger ++ : flush | ||
return | ||
return | ||
destroy LogStream | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.