-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Writing logs to my Azure Blob Storage works in my first tests fine but for log level Info.
I loaded the newest version:
<PackageReference Include="NLog.Extensions.AzureBlobStorage" Version="4.2.0" />
There is just no information contained in the log for this level.
What's wrong?
`
string blobName = $"{this.AzureStorageBlobNamePrefix}${{shortdate}}${{level}}.log";
// Azure Blob Storage-Target erstellen
BlobStorageTarget blobStorageTarget = new()
{
Name = blobStorageTargetName,
ConnectionString = this.AzureStorageConnectionString,
Container = this.AzureStorageContainerName,
BlobName = blobName,
Layout = layout,
};
// Azure Blob Storage-Target zur LoggingConfiguration hinzufügen
config.AddTarget(blobStorageTargetName, blobStorageTarget);
// Regel erstellen, um das Ziel mit den gewünschten Protokollereignissen zu verknüpfen
var rule = new LoggingRule("*", LogLevel.Trace, blobStorageTarget);
config.LoggingRules.Add(rule);`
Metadata
Metadata
Assignees
Labels
No labels
