New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ehealth-winston-azure-blob-transport

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ehealth-winston-azure-blob-transport

Winston Azure blob transport

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-83.33%
Maintainers
5
Weekly downloads
 
Created
Source

winston-azure-blob-transport

NPM version

A [Windows Azure][0] blob storage transport for [winston][1].

Credit

NOTE: This is a fork of https://github.com/Parsimotion/winston-azure-blob-transport, 99% of the code in this repository was written by user Parsimotion on github. This fork simply adds the ability to specify a max file size.

Installation

  $ npm install winston
  $ npm install ehealth-winston-azure-blob-transport

Usage

  var winston = require("winston");
  require("winston-azure-blob-transport");

  var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.AzureBlob)({
        account: {
          name: "Azure storage account sub domain ([A-Za-z0-9])",
          key: "The long Azure storage secret key"
        },
        containerName: "A container name",
        blobName: "The name of the blob",
        level: "info"
      })
    ]
  });
  
  logger.warn("Hello!");

The Azure transport accepts the following options:

  • level: Level of messages that this transport should log (defaults to info).
  • account.name: The name of the Windows Azure storage account to use
  • account.key: The access key used to authenticate into this storage account
  • blobName: The name of the blob to log.
  • containerName: The container which will contain the logs.
  • maxBlobSize: The size in MB when a new blob file should be created. Note that the file size may go over the max size. But a new one will be created within one hour of exceeding the max.
  • maxBlockCount: How many commited blobs should be written before a new blob is created. Note that currently azure has a maximum of 50000 before errors are thrown. The default value in this module is 48000 [0]: http://www.windowsazure.com/en-us/develop/nodejs/ [1]: https://github.com/flatiron/winston

FAQs

Package last updated on 25 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc