Isoftforge.Apps.Client.Log
1.0.0
See the version list below for details.
dotnet add package Isoftforge.Apps.Client.Log --version 1.0.0
NuGet\Install-Package Isoftforge.Apps.Client.Log -Version 1.0.0
<PackageReference Include="Isoftforge.Apps.Client.Log" Version="1.0.0" />
<PackageVersion Include="Isoftforge.Apps.Client.Log" Version="1.0.0" />
<PackageReference Include="Isoftforge.Apps.Client.Log" />
paket add Isoftforge.Apps.Client.Log --version 1.0.0
#r "nuget: Isoftforge.Apps.Client.Log, 1.0.0"
#:package Isoftforge.Apps.Client.Log@1.0.0
#addin nuget:?package=Isoftforge.Apps.Client.Log&version=1.0.0
#tool nuget:?package=Isoftforge.Apps.Client.Log&version=1.0.0
Isoftforge.Apps.Client.Log
.NET client for the isoftforge Log satellite API.
Configuration
var client = LogClient.Create(
baseUrl: "https://log-api.isoftforge.it/api",
apiKey: "ifl_your-api-key",
environmentSlug: "your-environment-slug",
defaultApplication: "my-app");
Hub proxy base URL: https://apps-api.isoftforge.it/api/log
Or with dependency injection:
services.AddLogClient(configuration.GetSection("Log"));
{
"Log": {
"BaseUrl": "https://log-api.isoftforge.it/api",
"ApiKey": "ifl_your-api-key",
"EnvironmentSlug": "your-environment-slug",
"DefaultApplication": "my-app"
}
}
Create API keys in the portal under Log → My profile or Users → Manage.
Usage
var validation = await client.ValidateCredentialsAsync();
if (!validation.Valid) throw new InvalidOperationException(validation.Error);
await client.SendInformationAsync("Order created");
await client.SendWarningAsync("Stock low");
await client.SendErrorAsync("Payment failed", exception: ex.ToString());
await client.SendEventsAsync([
new LogEventInput { Level = LogLevels.Debug, Message = "Cache hit", Application = "my-app" },
new LogEventInput { Level = LogLevels.Fatal, Message = "Service stopped" }
]);
await client.SendHeartbeatAsync("my-app");
Log levels
Verbose, Debug, Information, Warning, Error, Fatal — use LogLevels constants or convenience methods (SendDebugAsync, SendErrorAsync, etc.).
Authentication
Every request sends X-API-Key and X-Log-Environment.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Isoftforge.Apps.Client.Log:
| Package | Downloads |
|---|---|
|
Isoftforge.Log.Serilog
Serilog sink for the isoftforge Log satellite API. Batches events to POST /ingest/events. |
GitHub repositories
This package is not used by any popular GitHub repositories.