Skip to content

Commit

Permalink
Merge pull request #2 from kdawes/master
Browse files Browse the repository at this point in the history
Get the tests running and add travis-ci.org integration
  • Loading branch information
indexzero committed Dec 19, 2012
2 parents 12288b8 + 04a9740 commit 501d2d3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: node_js
branches:
only:
- master
node_js:
- 0.8
services:
- couchdb
notifications:
email:
- charlie.robbins@gmail.com
before_script:
- curl -X PUT 127.0.0.1:5984/logs
4 changes: 3 additions & 1 deletion README.md
@@ -1,4 +1,6 @@
winston-couchdb
===============

A full featured CouchDB transport for winston
A full featured CouchDB transport for winston

[![Build Status](https://travis-ci.org/indexzero/winston-couchdb.png)](https://travis-ci.org/indexzero/winston-couchdb)
3 changes: 2 additions & 1 deletion lib/winston-couchdb.js
Expand Up @@ -11,6 +11,7 @@ var events = require('events'),
common = require('winston/lib/winston/common'),
http = require('http'),
util = require('util'),
cycle = require('cycle'),
Stream = require('stream').Stream;

//
Expand Down Expand Up @@ -75,7 +76,7 @@ Couchdb.prototype.log = function (level, msg, meta, callback) {
//
// Write logging event to the outgoing request body
//
var params = common.clone(meta) || {};
var params = common.clone(cycle.decycle(meta)) || {};
// RFC3339/ISO8601 format instead of common.timestamp()
params.timestamp = new Date;
params.message = msg;
Expand Down
11 changes: 6 additions & 5 deletions package.json
@@ -1,21 +1,22 @@
{
"name": "winston-couchdb",
"description": "A CouchDB transport for winston",
"description": "A CouchDB transport for Winston",
"version": "0.6.1",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"repository": {
"type": "git",
"url": "http://github.com/indexzero/winston-couchdb.git"
"url": "http://github.com/indexzero/winston-couchdb"
},
"keywords": ["logging", "sysadmin", "tools", "winston", "couchdb"],
"dependencies": {
"cradle": "0.6.x"
"cradle": "0.6.x",
"cycle": "1.0.x"
},
"devDependencies": {
"winston": "0.5.x",
"winston": "0.6.x",
"vows": "0.6.x"
},
"main": "./lib/winston-couchdb",
"scripts": { "test": "vows test/*-test.js --spec" },
"engines": { "node": ">= 0.4.0" }
"engines": { "node": ">= 0.8.0" }
}

0 comments on commit 501d2d3

Please sign in to comment.