lil-logger

1.0.2 • Public • Published

Light Logger for Node

This is an example project to log HTTP requests to the console in node.

Require the Status Module

Require the module with:

const { status } = require('lil-logger')

Use the Status Module

Include the status function in your routes. Basic example:

 response.writeHead(200, { 'Content-Type': contentType })
 status(response.statusCode, request.method, request.url, error)
 response.end(content, 'utf-8')

Package Sidebar

Install

npm i lil-logger

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • spkellydev