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 ); }