Skip to content

Logging to AzureBlogStorage for level Info not working #138

@sev-22

Description

@sev-22

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" />

image

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions