Skip to content

amerishk/winston-azure-blob-transport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-azure-blob-transport

NPM version

A Windows Azure blob storage transport for winston.

Installation

  $ npm install winston
  $ npm install 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.

About

A Winston Transport - Azure Blob Storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 99.4%
  • JavaScript 0.6%