MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getLogFileName

Method getLogFileName

source/MRMesh/MRLog.cpp:36–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36std::filesystem::path Logger::getLogFileName() const
37{
38 if ( !logger_ )
39 return {};
40
41 for ( const auto& sink : logger_->sinks() )
42 {
43 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::rotating_file_sink_mt>( sink ) )
44 return r->filename();
45 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::rotating_file_sink_st>( sink ) )
46 return r->filename();
47 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::daily_file_sink_mt>( sink ) )
48 return r->filename();
49 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::daily_file_sink_st>( sink ) )
50 return r->filename();
51 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::basic_file_sink_mt>( sink ) )
52 return r->filename();
53 if ( auto r = std::dynamic_pointer_cast<spdlog::sinks::basic_file_sink_st>( sink ) )
54 return r->filename();
55 }
56
57 return {};
58}
59
60Logger::Logger()
61{

Callers 4

TESTFunction · 0.80
mcpSystemLogFunction · 0.80
drawApplicationTab_Method · 0.80
launchInit_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected