Skip to content

marcusbooyah/bitdrift-dotnet

Repository files navigation

bitdrift-dotnet

Getting started

using BitDrift;

Capture.Configure(
    apiKey: "YOUR_API_KEY",
    sessionStrategy: SessionStrategy.Fixed);

Capture.LogInformation("Hello, world!");

You can also use it with ILogger

using BitDrift;

// startup
builder.Logging.AddBitDrift(
    apiKey:          "YOUR_API_KEY",
    sessionStrategy: SessionStrategy.Fixed);

// use injected ILogger
Logger.LogInformation("Hello, world!");

Environment setup

Install prerequisites:

Note

It's possible to install the Android SDK and/or the Xcode Command Line Tools in a standalone manner. However, installation of the Xcode Command Line Tools is typically handled via Xcode. Likewise, Android SDK installation is also typically handled via Android Studio and/or the .NET MAUI VS Code Extension as-per the .NET MAUI Getting Started documentation.