0.2.2 • Published 4 years ago

node-kv-logger v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

node-kv-logger


NOTE: !!!THIS PACKAGE IS NO LONGER MAINTAINED!!! Please use kv-logger instead.

A k-v style logger for node.js. Only logs to console since a 12-factor app should write logs to stdout

API definitions: index.d.ts

Checkout examples in: test.js

Output example

  • text
msg=connecting..., user_id=12345, match_id=12315, level=info, time=2018-07-21 15:15:47.751  
user_id=12345, match_id=12315, msg=connectied, level=info, time=2018-07-21 15:15:47.751     
user_id=12345, match_id=12315, msg=connection lost., level=error, time=2018-07-21 15:15:47.751
msg=reconnecting..., user_id=12345, match_id=12315, level=info, time=2018-07-21 15:15:47.751
  • json
{"msg":"connecting...","user_id":12345,"match_id":12315,"level":"info","time":"2018-07-21 15:18:41.757"}
{"user_id":12345,"match_id":12315,"msg":"connectied","level":"info","time":"2018-07-21 15:18:41.757"}
{"user_id":12345,"match_id":12315,"msg":"connection lost.","level":"error","time":"2018-07-21 15:18:41.757"}
{"msg":"reconnecting...","user_id":12345,"match_id":12315,"level":"info","time":"2018-07-21 15:18:41.757"}
0.2.2

4 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago