diff options
| author | Stefan Boberg <[email protected]> | 2024-12-02 12:21:53 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-12-02 12:21:53 +0100 |
| commit | e6f44577f469e891ed8dab1492a4c53224e0b765 (patch) | |
| tree | 47334606ce62fb6bf1975cdc09276ced335599f4 /src/zenutil/logging.cpp | |
| parent | 5.5.15-pre0 (diff) | |
| download | zen-e6f44577f469e891ed8dab1492a4c53224e0b765.tar.xz zen-e6f44577f469e891ed8dab1492a4c53224e0b765.zip | |
added support for dynamic LLM tags (#245)
* added FLLMTag which can be used to register memory tags outside of core
* changed `UE_MEMSCOPE` -> `ZEN_MEMSCOPE` for consistency
* instrumented some subsystems with dynamic tags
Diffstat (limited to 'src/zenutil/logging.cpp')
| -rw-r--r-- | src/zenutil/logging.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenutil/logging.cpp b/src/zenutil/logging.cpp index 4f8c5e59e..6314c407f 100644 --- a/src/zenutil/logging.cpp +++ b/src/zenutil/logging.cpp @@ -13,6 +13,7 @@ ZEN_THIRD_PARTY_INCLUDES_END #include <zencore/compactbinary.h> #include <zencore/filesystem.h> #include <zencore/logging.h> +#include <zencore/memory/llm.h> #include <zencore/string.h> #include <zenutil/logging/fullformatter.h> #include <zenutil/logging/jsonformatter.h> @@ -42,6 +43,8 @@ InitializeLogging(const LoggingOptions& LogOptions) void BeginInitializeLogging(const LoggingOptions& LogOptions) { + ZEN_MEMSCOPE(ELLMTag::Logging); + zen::logging::InitializeLogging(); zen::logging::EnableVTMode(); @@ -162,6 +165,8 @@ BeginInitializeLogging(const LoggingOptions& LogOptions) void FinishInitializeLogging(const LoggingOptions& LogOptions) { + ZEN_MEMSCOPE(ELLMTag::Logging); + logging::level::LogLevel LogLevel = logging::level::Info; if (LogOptions.IsDebug) |