| 73 | } |
| 74 | |
| 75 | std::shared_ptr<lazy_file_sink_mt> Log::GetSink() noexcept |
| 76 | { |
| 77 | if (IsInitialized()) |
| 78 | { |
| 79 | return s_LogSink.lock(); |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | return nullptr; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | void Log::Initialize(const std::optional<std::filesystem::path> &storageFolder) |
| 88 | { |