aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/diag/logging.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-02-13 13:47:51 +0100
committerGitHub Enterprise <[email protected]>2026-02-13 13:47:51 +0100
commitb0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5 (patch)
treea365bcd2bd339fc275d19bdc78ea3af0d2437386 /src/zenserver/diag/logging.cpp
parentadd IHttpRequestFilter to allow server implementation to filter/reject reques... (diff)
downloadzen-b0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5.tar.xz
zen-b0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5.zip
logging config move to zenutil (#754)
made logging config options from zenserver available in zen CLI
Diffstat (limited to 'src/zenserver/diag/logging.cpp')
-rw-r--r--src/zenserver/diag/logging.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenserver/diag/logging.cpp b/src/zenserver/diag/logging.cpp
index 4962b9006..75a8efc09 100644
--- a/src/zenserver/diag/logging.cpp
+++ b/src/zenserver/diag/logging.cpp
@@ -28,10 +28,10 @@ InitializeServerLogging(const ZenServerConfig& InOptions, bool WithCacheService)
const LoggingOptions LogOptions = {.IsDebug = InOptions.IsDebug,
.IsVerbose = false,
.IsTest = InOptions.IsTest,
- .NoConsoleOutput = InOptions.NoConsoleOutput,
- .QuietConsole = InOptions.QuietConsole,
- .AbsLogFile = InOptions.AbsLogFile,
- .LogId = InOptions.LogId};
+ .NoConsoleOutput = InOptions.LoggingConfig.NoConsoleOutput,
+ .QuietConsole = InOptions.LoggingConfig.QuietConsole,
+ .AbsLogFile = InOptions.LoggingConfig.AbsLogFile,
+ .LogId = InOptions.LoggingConfig.LogId};
BeginInitializeLogging(LogOptions);
@@ -79,10 +79,10 @@ InitializeServerLogging(const ZenServerConfig& InOptions, bool WithCacheService)
}
#if ZEN_WITH_OTEL
- if (!InOptions.OtelEndpointUri.empty())
+ if (!InOptions.LoggingConfig.OtelEndpointUri.empty())
{
// TODO: Should sanity check that endpoint is reachable? Also, a valid URI?
- auto OtelSink = std::make_shared<zen::logging::OtelHttpProtobufSink>(InOptions.OtelEndpointUri);
+ auto OtelSink = std::make_shared<zen::logging::OtelHttpProtobufSink>(InOptions.LoggingConfig.OtelEndpointUri);
zen::logging::Default().SpdLogger->sinks().push_back(std::move(OtelSink));
}
#endif