feat: experimental memory logger and logs api for WebUI

This commit is contained in:
yusing
2025-01-19 13:45:16 +08:00
parent 1adba05065
commit 0fad7b3411
5 changed files with 176 additions and 3 deletions

View File

@@ -19,6 +19,9 @@ var (
IsTrace = GetEnvBool("TRACE", false) && IsDebug
IsProduction = !IsTest && !IsDebug
EnableLogStreaming = GetEnvBool("LOG_STREAMING", true)
DebugMemLogger = GetEnvBool("DEBUG_MEM_LOGGER", false) && EnableLogStreaming
ProxyHTTPAddr,
ProxyHTTPHost,
ProxyHTTPPort,