Skip to content

Commit

Permalink
Merge pull request #79 from SumoLogic/byi-update-api-key
Browse files Browse the repository at this point in the history
update api key for nuget
  • Loading branch information
Bin Yi authored Feb 26, 2019
2 parents cf00dcf + 0d24930 commit 93a4e2e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions SumoLogic.Logging.AspNetCore.Tests/LoggerProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void TestMultipleMessages()
for (var i = 0; i < numMessages; i++)
{
_logger.LogInformation(i.ToString());
Thread.Sleep(TimeSpan.FromMilliseconds(100));
Thread.Sleep(TimeSpan.FromMilliseconds(200));
}
TestHelper.Eventually(() =>
{
Expand Down Expand Up @@ -191,7 +191,8 @@ private void SetupLogger(long messagesPerRequest, long maxFlushInterval, long fl
RetryInterval = TimeSpan.FromMilliseconds(retryInterval),
IsBuffered = true,
HttpMessageHandler = _messagesHandler,
});
DebuggingLogger = new Microsoft.Extensions.Logging.Console.ConsoleLogger("debugging", (a, b) => true, true)
});

_logger = _provider.CreateLogger("OverriddenCategory");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RestoreFallbackFolders>clear</RestoreFallbackFolders>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
Expand Down
2 changes: 1 addition & 1 deletion SumoLogic.Logging.Common.Tests/TestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static class TestHelper
{
public delegate void VerifierDelegate();

public static TimeSpan DEFAULT_TIMEOUT = TimeSpan.FromSeconds(10);
public static TimeSpan DEFAULT_TIMEOUT = TimeSpan.FromSeconds(15);

public static TimeSpan DEFAULT_INTERVAL = TimeSpan.FromMilliseconds(100);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private void SetUpLogger(long messagesPerRequest, long maxFlushInterval, long fl
bufferedSumoLogicTarget.MaxFlushInterval = maxFlushInterval;
bufferedSumoLogicTarget.FlushingAccuracy = flushingAccuracy;
bufferedSumoLogicTarget.RetryInterval = retryInterval;
bufferedSumoLogicTarget.UseConsoleLog = true;
if (LogManager.Configuration == null)
{
LogManager.Configuration = new LoggingConfiguration();
Expand Down
3 changes: 2 additions & 1 deletion SumoLogic.Logging.Serilog.Tests/SumoLogicSinkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace SumoLogic.Logging.Serilog.Tests
using global::Serilog;
using global::Serilog.Core;
using global::Serilog.Formatting.Display;
using SumoLogic.Logging.Common.Log;
using SumoLogic.Logging.Common.Sender;
using SumoLogic.Logging.Common.Tests;
using SumoLogic.Logging.Serilog.Config;
Expand Down Expand Up @@ -184,7 +185,7 @@ private void SetUpLogger(long messagesPerRequest, long maxFlushInterval, long fl
_messagesHandler = new MockHttpMessageHandler();

sink = new BufferedSumoLogicSink(
null,
new ConsoleLog(),
_messagesHandler,
new SumoLogicConnection
{
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ artifacts:
deploy:
- provider: NuGet
api_key:
secure: 7eO0Ou3vAoxfY4u9j46Fw9bA/r8t0gSJFooIkkYF1n499aDpIPm5vXUmlfb4xO2s
secure: Dw0Wj+OALmF6GCtevx6tx5YDF9HsygWtOoOmAzXQ1pTXCAudRlkhz1t/9ymZ/pHa
on:
appveyor_repo_tag: true

0 comments on commit 93a4e2e

Please sign in to comment.