MCPcopy Create free account
hub / github.com/COVESA/vsomeip / app_name

Method app_name

implementation/logger/src/message.cpp:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239std::string_view message::app_name() const {
240 static std::string its_name = [] {
241 // Only read the env var once, on first use. This is also threadsafe.
242 // NOLINTNEXTLINE(concurrency-mt-unsafe): False positve since C++11
243 const char* name = std::getenv(VSOMEIP_ENV_APPLICATION_NAME);
244 return name ? std::string{" "} + name : "";
245 }();
246 return its_name;
247}
248
249std::string_view message::level_as_view() const {
250 switch (level_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected