lawg

2.0.1 • Public • Published

lawg

An onomatopoeia on "log".

Sample code

var log = require("lawg")

log( 1, " word ", new Error("err"), [1,2], { x : 1, y: {a : 2}})

Outputs

[Jan 09 2015 13:39:42.786 GMT+0800] 1 word [Error: err][ 1, 2 ]{ x: 1, y: { a: 2 } }

If the "NODE_DEBUG" environment variable is set, the source code location is printed immediately after timestamp. Output looks like:

[Jan 09 2015 13:39:42.786 GMT+0800](lawg/index.js:60:10) 1 word [Error: err][ 1, 2 ]{ x: 1, y: { a: 2 } }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.10
2.0.00
1.0.5127
1.0.324
1.0.20
1.0.10
0.1.00
1.0.00

Package Sidebar

Install

npm i lawg

Weekly Downloads

133

Version

2.0.1

License

ISC

Last publish

Collaborators

  • mhzed