An open API service indexing awesome lists of open source software.

https://github.com/marcusbooyah/bitdrift-dotnet

.NET bindings for bitdrift
https://github.com/marcusbooyah/bitdrift-dotnet

bitdrift dotnet logging maui maui-blazor observability

Last synced: about 1 month ago
JSON representation

.NET bindings for bitdrift

Awesome Lists containing this project

README

          

# bitdrift-dotnet

## Getting started

```csharp
using BitDrift;

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

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

You can also use it with ILogger

```csharp
using BitDrift;

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

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

## Environment setup

Install prerequisites:

- [.NET 8.0 SDK](https://dotnet.microsoft.com/download)
- [.NET MAUI workload](https://github.com/dotnet/core/blob/main/release-notes/6.0/install-maui.md#cli-installation) (via Visual Studio or CLI ```dotnet workload install maui```)
- [Android SDK](https://developer.android.com/tools)
- [Android Studio](https://developer.android.com/studio)
- [Objective-Sharpie](https://aka.ms/objective-sharpie)
- [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/download)
- [Xcode](https://developer.apple.com/xcode/)
- [Xcode Command Line Tools](https://developer.apple.com/download/all/?q=command%20line%20tools) (```xcode-select --install```)

> [!NOTE]
>
> It's possible to install the [Android SDK](https://developer.android.com/tools) and/or the [Xcode Command Line Tools](https://developer.apple.com/download/all/?q=command%20line%20tools) in a standalone manner. However, installation of the [Xcode Command Line Tools](https://developer.apple.com/download/all/?q=command%20line%20tools) is typically handled via [Xcode](https://developer.apple.com/xcode/). Likewise, [Android SDK](https://developer.android.com/tools) installation is also typically handled via [Android Studio](https://developer.android.com/studio) and/or the [.NET MAUI VS Code Extension](https://aka.ms/mauidevkit-marketplace) as-per the [.NET MAUI Getting Started](https://learn.microsoft.com/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code#install-visual-studio-code-and-the-net-maui-extension) documentation.