A Winston transport for logging to Azure Blob Storage. Current stable version is 1.5.0, with no recent releases (last update 2019). It supports multiple authentication methods (account key, SAS token, connection string), file extension configuration, log rotation, and TypeScript types out of the box. Unlike other Azure log transports, it uses the modern @azure/storage-blob SDK and integrates directly with winston 3. It requires async and winston >=3 as peer dependencies.
npm install winston-azure-blobNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Winston logger with Azure Blob transport using account name and key authentication.
Create the Azure Blob container using Azure Portal, CLI, or SDK before using the transport.
Set bufferLogSize to a positive integer (e.g., 10) to reduce HTTP calls.
If you need a different version of `@azure/storage-blob`, use a separate instance or check compatibility.
Use `extensions.LOG` for '.log', or provide a custom string like '.txt'.
Create the container via Azure portal, CLI, or SDK before running the logger.
Provide a valid account object with name/key, host/sasToken, or connectionString.
Check the storage account name; ensure it is correct and accessible.