git middleware for book logging framework
Last updated 8 years ago by shtylman .
Repository · Original npm · Tarball · package.json
$ cnpm install book-git 
SYNC missed versions from official npm registry.

book-git is a git version middleware for the book logging framework. It will add a commit field with the sha hash of your projects git repository.


npm install book-git


book-git is used like all other book middleware. Just add it to your logger object. I recommend you create a file log.js for your project where you setup the logger however you desire across your entire project.

// some logger you have created
var log = require('book').default();

// adds the git middleware to your logging stack

// log stuffs, git sha will be added automatically for you'hello world!');

The final log entry will have an additional field commit which will contain the sha hash. If you have a custom book transport, make sure it is writing it to whatever destination you desire. If you use other book transports like book-email or book-file then it will automatically be included in the stored entry.

Current Tags

  • 0.0.2                                ...           latest (8 years ago)

2 Versions

  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
Dev Dependencies (0)
Dependents (2)

Copyright 2014 - 2016 © |