-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
); | ||
} | ||
|
||
|