From 7c16612ebba228b32afea666a75e586483889929 Mon Sep 17 00:00:00 2001 From: "kts of kettek (muzukashi)" Date: Wed, 21 Sep 2016 19:44:06 -0700 Subject: [PATCH] Add README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6050ca4 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# polylog +polylog is an intentionally simple logger module for Node.js + +## Usage + var pLog = require('polylog'); + // create new Error label with full options + var perr = pLog.new('Error', {logTime: true, logLabel: true, toTTY: true, toFile: 'error.log'}); + var object = { error: 'oops!' }; + perr('oh no, error: ', object); + // or, get default stdout/TTY Logger + var plog = pLog.log; + +See `test.js` for more cases.