From ee6176dd935b13a2c1773c763617729a41f35cf6 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:34:50 +0100 Subject: [PATCH] Exposed SeqToken (#3624) --- Core/Core/Logging/SpeckleLog.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Core/Core/Logging/SpeckleLog.cs b/Core/Core/Logging/SpeckleLog.cs index 6cf4c27e66..b57039e3be 100644 --- a/Core/Core/Logging/SpeckleLog.cs +++ b/Core/Core/Logging/SpeckleLog.cs @@ -56,6 +56,10 @@ public sealed class SpeckleLogConfiguration private const string DEFAULT_SENTRY_DNS = "https://f29ec716d14d4121bb2a71c4f3ef7786@o436188.ingest.sentry.io/5396846"; + public string SeqToken { get; } + + private const string DEFAULT_SEQ_TOKEN = "EzYqoMOmkow12Lw0KYXp"; + /// /// Default SpeckleLogConfiguration constructor. /// These are the sane defaults we should be using across connectors. @@ -73,7 +77,8 @@ public SpeckleLogConfiguration( bool logToSentry = true, bool logToFile = true, bool enhancedLogContext = true, - string sentryDns = DEFAULT_SENTRY_DNS + string sentryDns = DEFAULT_SENTRY_DNS, + string seqToken = DEFAULT_SEQ_TOKEN ) { MinimumLevel = minimumLevel; @@ -83,6 +88,7 @@ public SpeckleLogConfiguration( LogToFile = logToFile; EnhancedLogContext = enhancedLogContext; SentryDns = sentryDns; + SeqToken = seqToken; } } @@ -202,7 +208,7 @@ SpeckleLogConfiguration logConfiguration { serilogLogConfiguration = serilogLogConfiguration.WriteTo.Seq( "https://seq.speckle.systems", - apiKey: "agZqxG4jQELxQQXh0iZQ" + apiKey: logConfiguration.SeqToken ); }