Skip to content

Commit 75be4f4

Browse files
committed
Updated log targets to use in memory storage
@ejsmith thoughts? This will only happen if you specify a server url or api key.
1 parent aea8872 commit 75be4f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Source/Platforms/Log4net/ExceptionlessAppender.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public override void ActivateOptions() {
1414
_client = new ExceptionlessClient(config => {
1515
config.ApiKey = ApiKey;
1616
config.ServerUrl = ServerUrl;
17+
config.UseInMemoryStorage();
1718
});
1819
else
1920
_client = ExceptionlessClient.Default;

Source/Platforms/NLog/ExceptionlessTarget.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected override void InitializeTarget() {
2626
_client = new ExceptionlessClient(config => {
2727
config.ApiKey = ApiKey;
2828
config.ServerUrl = ServerUrl;
29+
config.UseInMemoryStorage();
2930
});
3031
else
3132
_client = ExceptionlessClient.Default;

0 commit comments

Comments
 (0)