InnerDrive.Logging
5.2.1247.1
See the version list below for details.
dotnet add package InnerDrive.Logging --version 5.2.1247.1
NuGet\Install-Package InnerDrive.Logging -Version 5.2.1247.1
paket add InnerDrive.Logging --version 5.2.1247.1
#r "nuget: InnerDrive.Logging, 5.2.1247.1"
#:package InnerDrive.Logging@5.2.1247.1
#addin nuget:?package=InnerDrive.Logging&version=5.2.1247.1
#tool nuget:?package=InnerDrive.Logging&version=5.2.1247.1
Inner Drive Extensible Architeture
The Inner Drive Extensible Architecture implements common .NET development situations including time zones, money, measurements and conversions, and Microsoft Azure features.
InnerDrive.Logging
Features
- Microsoft Azure-based event and audit logging capabiliites
- Abstraction layers for sending email through Postmark and SendGrid
- NLog targets for SendGrid, Postmark, and Azure tables
Prerequisites
This package runs on .NET 8. It depends on these packages:
To use the Azure logging tools, you will need an Azure subscription and connection string to an Azure tables instance. To use Postmark email tools, you will need a Postmark subscription. To use SendGrid, you'll need a Twilio SendGrid subscription, which you can sign up for through the Azure portal.
Usage
To use the ActionLog
Configure the actionLog and Azure Key Vault settings:
{
"actionLog": {
"baseTableName": "myAppLog"
},
"keyVaultSecretProviderThrowExceptions": true,
"keyVaultTenantId": "{key vault tenant ID}",
"keyVaultUrl": "{key vault URL}"
}
The Key Vault Secrets collection should contain the following:
- storageAccountKey
- storageAccountName
- storageTablesUri
- storageConnectionString
Once set up, adding an event is straightforward:
var repository = new AzureLogRepository(_accountName, _accountKey, _tablesUri)
{
ApplicationName = ApplicationName,
BaseTableName = BaseTableName,
Source = "AzureLogRepository.Write example"
};
var eventInfo = new LogEventInfo(LogLevel.Info, GetType().Name, messageBody)
{
Properties =
{
["Computer name"] = Environment.MachineName,
["OS Version"] = Environment.OSVersion.ToString()
}
};
var logEntry = AzureLogEntry.Map(eventInfo, ApplicationName);
var result = await repository.WriteAsync(logEntry, CancellationToken.None);
Trace.WriteLine($"Async write result: {result.Status}");
Reading log entries is also easy:
var now = DateTimeOffset.Now;
var range = new DateRange(now.AddHours(-24), now);
var result = await repository.FindAsync(range);
foreach(var item in result)
{
Trace.WriteLine(item);
}
NLog targets
NLog.config settings:
The Inner Drive Technology website has a full SDK and example code. We also have a demo weather site that uses all the IDEA components.
Feedback
Comments or questions? Send feedback
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Azure.Data.Tables (>= 12.11.0)
- Humanizer (>= 2.14.1)
- InnerDrive.Azure (>= 5.2.1247.1)
- InnerDrive.Core (>= 5.2.1247.1)
- NLog (>= 5.4.0)
- Postmark (>= 5.2.0)
- SendGrid (>= 9.29.3)
- System.Text.Json (>= 9.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.3.1592 | 183 | 8/19/2026 |
| 5.3.1548 | 253 | 7/21/2026 |
| 5.3.1533 | 134 | 7/15/2026 |
| 5.3.1531 | 119 | 7/15/2026 |
| 5.3.1519 | 141 | 7/1/2026 |
| 5.3.1508 | 135 | 6/25/2026 |
| 5.3.1498 | 147 | 6/18/2026 |
| 5.3.1495 | 138 | 6/17/2026 |
| 5.3.1263 | 764 | 11/21/2025 |
| 5.2.1247.1 | 352 | 10/12/2025 |
| 5.2.1235.1 | 249 | 10/5/2025 |
| 5.2.1076.1 | 670 | 2/14/2025 |
| 5.2.989.1 | 389 | 11/2/2024 |
| 5.2.938.1 | 401 | 9/7/2024 |
| 5.1.926.1 | 253 | 9/2/2024 |
| 5.1.871.1 | 430 | 6/6/2024 |
| 5.1.854.1 | 383 | 5/21/2024 |
Multiple performance and stability improvements