From c244b470f32d8877d958d51b2bba6be4f56fa606 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Fri, 25 Jan 2019 12:36:57 -0800 Subject: [PATCH] 0.0.7 --- example/example.js | 19 +++++++++++++++++++ package.json | 8 ++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 example/example.js diff --git a/example/example.js b/example/example.js new file mode 100644 index 0000000..f0978ea --- /dev/null +++ b/example/example.js @@ -0,0 +1,19 @@ +import logger from '../src/logger' +let log = {} + +class LOGTEST { + constructor(opts) { + log = logger({ + name: 'test', + id: opts.id, + file: 'example/example.js', + class: 'LOGTEST' + }) + } + +} + +let test = new LOGTEST({id:'process-test1'}) + +log.info({test:'filter', msg:'this is a logged message'}) +log.fatal('this is a fatal logged message') diff --git a/package.json b/package.json index 6a3be14..595d3ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uci/logger", - "version": "0.0.6", + "version": "0.0.7", "description": "Parent Logger for all UCI modules", "main": "src/logger", "scripts": { @@ -27,16 +27,16 @@ }, "homepage": "https://github.com/uCOMmandIt/uci-changeme#readme", "dependencies": { - "pino": "^5.11.0", + "pino": "^5.11.1", "pino-pretty": "^2.5.0" }, "devDependencies": { "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "codecov": "^3.1.0", - "esm": "^3.0.84", + "esm": "^3.1.2", "istanbul": "^0.4.5", "mocha": "^5.2.0", - "nodemon": "^1.18.7" + "nodemon": "^1.18.9" } }