From 98e83aaaf715d39733cb13c1db977a60a9b05c0d Mon Sep 17 00:00:00 2001 From: Stijn de Witt Date: Sun, 2 Dec 2018 05:13:03 +0100 Subject: [PATCH] 2.0.0-beta.4 Removed logging statement in `ulog/debug` endpoint --- README.md | 8 ++++---- debug.js | 1 - package-lock.json | 2 +- package.json | 2 +- ulog.js | 2 +- ulog.min.js | 2 +- ulog.umd.js | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d81c44d..94d36e6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ulog v2.0.0-beta.3 +# ulog v2.0.0-beta.4 ### Microscopically small universal logging library [![npm](https://img.shields.io/npm/v/ulog.svg)](https://npmjs.com/package/ulog) @@ -65,8 +65,8 @@ You should also be able to use e.g. Yarn etc. If you want the file for the browser to include in your project yourself, you can download it from here. -* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.3/ulog.umd.js) (~3kB, source) -* [ulog.min.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.3/ulog.min.js) (~2kB, minified) +* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.4/ulog.umd.js) (~3kB, source) +* [ulog.min.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.4/ulog.min.js) (~2kB, minified) ## Include in your app @@ -94,7 +94,7 @@ const log = ulog('my-module') If you want, you can import `ulog` with a script tag: ```html - + ``` *myscript.js* diff --git a/debug.js b/debug.js index deffb07..eadec99 100644 --- a/debug.js +++ b/debug.js @@ -5,7 +5,6 @@ ulog.formats.push(format); module.exports = ulog; function format(logger, method, args) { - console.info('format', 'logger', logger, 'method', method, 'args', args) args.unshift(time(), logger.name.substring(0,18).padEnd(20, ' ')) } diff --git a/package-lock.json b/package-lock.json index 9970044..bd7eb50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ulog", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index aa27270..52a27b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ulog", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "Microscopically small universal logging library", "main": "node.js", "unpkg": "ulog.min.js", diff --git a/ulog.js b/ulog.js index fe25d13..ad29950 100644 --- a/ulog.js +++ b/ulog.js @@ -43,7 +43,7 @@ function create(n,r) { function extend(o,p,l) { if (o.log) return o.NONE = 0 - o.ulog = {version:'2.0.0-beta.3'} + o.ulog = {version:'2.0.0-beta.4'} for (var key in LVL) {o[key] = LVL[key]} Object.defineProperty(o, 'level', { get: function(){return l !== undefined ? l : p && p.level}, diff --git a/ulog.min.js b/ulog.min.js index c346539..1ce7ef5 100644 --- a/ulog.min.js +++ b/ulog.min.js @@ -1 +1 @@ -!function(e,n,o){"function"==typeof define&&define.amd?define(n,[],o):e[n]=o()}(this,"ulog",function(){"use strict";function log(e){return e?mods[e]||(mods[e]=extend(create(e),log)):extend(log)}log.formats=[],log.extends=[],log.enable=function(e){var n,o=(e||"").split(/[\s,]+/);for(n=0;n 1 && names[a[0]] ? a.shift() : 'debug'; for (var i=0; i 1 && names[a[0]] ? a.shift() : 'debug'; for (var i=0; i