This package has been deprecated

Author message:

node-kv-logger is no longer maintained, please use kv-logger instead.

node-kv-logger
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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"}

Readme

Keywords

Package Sidebar

Install

npm i node-kv-logger

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

8.71 kB

Total Files

6

Last publish

Collaborators

  • rocwind