-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
bugDenotes a runtime problem within the SDKDenotes a runtime problem within the SDK
Milestone
Description
I have started a brand new, never touched before, test project. Then added the later Rollbar nuget package 1.0.1. I’m following docs from here: https://rollbar.com/docs/notifier/rollbar.net/
I have stripped my nunit test right back to this;
using NUnit.Framework;
using Rollbar;
using System;
namespace RollbarTests
{
[TestFixture]
public class SmokeTests
{
private string apiKey = "myApiKey";
[Test]
public void JustLog()
{
RollbarLocator.RollbarInstance.Configure(new RollbarConfig(apiKey) { Environment = "development" });
Assert.DoesNotThrow(() => RollbarLocator.RollbarInstance.Info(string.Format("Logging test {0:dd MMM yyyy HH:mm:ss:ffff}", DateTime.Now)));
}
}
}
No errors are generated, yet nothing is logging (I have tried both server-side and client-side apiKeys). I'm not behind a firewall for this test, and I can ping api.rollbar.com.
What am I missing?
Metadata
Metadata
Assignees
Labels
bugDenotes a runtime problem within the SDKDenotes a runtime problem within the SDK