Skip to content

Commit

Permalink
Exposed SeqToken (#3624)
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan authored Sep 16, 2024
1 parent 25483ad commit ee6176d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Core/Core/Logging/SpeckleLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public sealed class SpeckleLogConfiguration

private const string DEFAULT_SENTRY_DNS = "https://[email protected]/5396846";

public string SeqToken { get; }

private const string DEFAULT_SEQ_TOKEN = "EzYqoMOmkow12Lw0KYXp";

/// <summary>
/// Default SpeckleLogConfiguration constructor.
/// These are the sane defaults we should be using across connectors.
Expand All @@ -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;
Expand All @@ -83,6 +88,7 @@ public SpeckleLogConfiguration(
LogToFile = logToFile;
EnhancedLogContext = enhancedLogContext;
SentryDns = sentryDns;
SeqToken = seqToken;
}
}

Expand Down Expand Up @@ -202,7 +208,7 @@ SpeckleLogConfiguration logConfiguration
{
serilogLogConfiguration = serilogLogConfiguration.WriteTo.Seq(
"https://seq.speckle.systems",
apiKey: "agZqxG4jQELxQQXh0iZQ"
apiKey: logConfiguration.SeqToken
);
}

Expand Down

0 comments on commit ee6176d

Please sign in to comment.