0.1.1 • Published 10 years ago

winston-oohlalog v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

oohlalog_winston

An OohLaLog transport for winston logging in Node.js.

Motivation

To extend winston logging to OohLaLog.

Usage

  var winston = require('winston');
  
  //
  // Requiring `winston-oohlalog` will expose 
  // `winston.transports.OohLaLog`
  //
  var OohLaLog = require('winston-oohlalog').OohLaLog;
  
  winston.add(OohLaLog, options);

The OohLaLog transport takes the following options.

  • apiKey: Your OohLaLog API key
  • hostName: The host name of your application
  • level: Level of messages that this transport should log, defaults to 'info'.
  • debug: Boolean flag indicating whether to show debugging output, defaults to false.

  • timedFlush: The time interval(milliseconds) at which you would like logs to be automatically flushed to OLL server, defaults to 10000.

  • threshold: The maximum number of logs you want to be buffered before being automatically flushed to OLL server, defaults to 150.

Notice: apiKey is required.

Metadata: If metadata contains the key "category" then this is stored in the log's category attribute. All else is logged as JSON literal in the log's details section.

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-oohlalog

  $ npm install winston
  $ npm install winston-oohlalog
0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago