Oleq.Ai.Logs
0.0.8
dotnet add package Oleq.Ai.Logs --version 0.0.8
NuGet\Install-Package Oleq.Ai.Logs -Version 0.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oleq.Ai.Logs" Version="0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oleq.Ai.Logs" Version="0.0.8" />
<PackageReference Include="Oleq.Ai.Logs" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Oleq.Ai.Logs --version 0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Oleq.Ai.Logs, 0.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Oleq.Ai.Logs@0.0.8
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Oleq.Ai.Logs&version=0.0.8
#tool nuget:?package=Oleq.Ai.Logs&version=0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Oleq.Ai.Logs
.NET SDK for Oleq Logs. Official ingest client for .NET 6+.
Docs: logs.oleq.app/docs
Install
dotnet add package Oleq.Ai.Logs
Setup
- Create an app in the dashboard (Apps).
- Create an API key for that org.
- Set the key (or pass it in options):
export OLEQLOG_API_KEY=sk_live_…
Usage
using Oleq.Ai.Logs;
var log = new OleqLog(new LoggerConfig
{
AppName = "my-api", // required — same name as your dashboard app
Environment = "production",
// ApiKey = "sk_live_…", // optional if OLEQLOG_API_KEY is set
// BaseUrl = "http://localhost:3000", // optional; default is production API
Sensitive = new SensitiveConfig
{
Fields = new[] { "password", "authorization", "ssn" },
Action = SensitiveAction.Redact, // or Strip to omit the key
},
});
await log.InfoAsync(new LogPayload { Message = "server started" });
await log.WarnAsync(new LogPayload { Message = "slow query", Body = new { ms = 420 } });
await log.ErrorAsync(new LogPayload
{
Message = "payment failed",
Kind = LogKind.Res,
Body = new { status = 402, password = "secret" }, // password → "***" before send
});
await log.FlushAsync();
await log.DisposeAsync();
Levels
Trace · Debug · Info · Success · Warn · Error · Fatal · Audit · Metric
Optional fields
| Field | Notes |
|---|---|
Kind |
Req | Res — separate events |
Body |
any JSON-serializable attachment |
Track / Security / Metrics |
structured blobs |
Options
| Option | Default |
|---|---|
AppName |
required |
ApiKey |
OLEQLOG_API_KEY |
BaseUrl |
https://logspi.oleq.app — set in code for local/dev |
Environment |
DOTNET_ENVIRONMENT / ASPNETCORE_ENVIRONMENT or "development" |
FlushIntervalMs |
2000 |
MaxBatchSize |
50 |
Sensitive |
optional — { Fields, Action?, ReplaceWith? }; matches nested keys case-insensitively before send |
Sibling SDKs
| SDK | Package | Status |
|---|---|---|
| JavaScript / TypeScript | @oleq-ai/logs |
Available |
| .NET | Oleq.Ai.Logs (this package) |
Available |
| Flutter (mobile) | oleq_logs |
Available |
License
Proprietary. See LICENSE. Source is not open.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.