logcharm

0.0.3 • Public • Published

logcharm

logs request to a http server - with a charm

purpose

The target of logcharm is to provide a simple but beautiful logger.

It display the HTTP method, the requested URL, HTTP status code and the total request time. More things might follow.

a picture

bad example

how to install

npm install logcharm

how to use

var stack  = require('stack')
  , log    = require('./lib/logger')
  , http   = require('http')
 
var app = stack(
    log()
)
 
http.createServer(app).listen(80)

Yep, thats it!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    3
  • 0.0.1
    1

Package Sidebar

Install

npm i logcharm

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • masch