MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / Log

Class Log

ProgramLog/log.hpp:13–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "lazyfilesink.hpp"
12
13class Log {
14private:
15 enum class InitStatus {
16 NotInitialized,
17 Initializing,
18 Initialized
19 };
20
21 static std::atomic<InitStatus> s_LogInitStatus;
22 static std::weak_ptr<lazy_file_sink_mt> s_LogSink;
23
24 static std::time_t GetProcessCreationTime() noexcept;
25 static std::filesystem::path GetPath(const std::optional<std::filesystem::path> &storageFolder);
26 static void LogErrorHandler(const std::string &message);
27
28public:
29 PROGRAMLOG_API static bool IsInitialized() noexcept;
30 PROGRAMLOG_API static std::shared_ptr<lazy_file_sink_mt> GetSink() noexcept;
31 PROGRAMLOG_API static void Initialize(const std::optional<std::filesystem::path> &storageFolder);
32};

Callers 2

HandleFunction · 0.85
HandleCommonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected