From 34dcd12c16ef64f2f3a9c181bfefd2eb6bdcaef6 Mon Sep 17 00:00:00 2001 From: John Reeves Date: Fri, 18 Aug 2017 15:49:27 +0100 Subject: [PATCH] Bump to v1.4.0 (#56) * Bump to v1.4.0 * Fixup readme * Fix Typo in README (#43) * Change URL to use rawgit.com, fixes #33 * Update Changelog --- CHANGELOG.md | 7 +++++++ README.md | 7 +++---- package.json | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e771a41..d70cf7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.4.0 (18th August, 2017) + - Add `Logger.getLevel()` (#49, @BenjaminVadant) + - Invoke `console.debug` if present (#34, @ajwagner777) + - Add Typing for `Logger.createDefaultHandler()` (#55, @scevallos) + - Fix typo in README (#43, @gamtiq) + - Update README to reference rawgit.com (#33, @tjenkinson) + ## 1.3.0 (5th July, 2016) - Add `Logger.createDefaultHandler()`, fixes #26 - Correct typo in README, fixes #28 diff --git a/README.md b/README.md index 6331b58..61dfd87 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ js-Logger has zero dependencies and comes with AMD and CommonJS module boilerplate. If the last sentence meant nothing to you then just lob the following into your page: ```html - + ``` Have a look at [babel-plugin-js-logger](https://github.com/core-process/babel-plugin-js-logger), in case your project utilizes [Babel](https://babeljs.io/), and you want to use js-Logger throughout your entire project efficiently. @@ -44,14 +44,13 @@ var oldLevel = Logger.getLevel(); Logger.setLevel(Logger.OFF); Logger.error("Hull breach on decks 5 through to 41!"); // ... -// Some time later - +// Actually, maybe those logs were quite useful... Logger.setLevel(oldLevel); ``` ## Log Handler Functions -All log messages are routed through a handler function which redirects filtered messages somewhere. You can configure the handler function via `Logger.setHandler` nothing that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler. +All log messages are routed through a handler function which redirects filtered messages somewhere. You can configure the handler function via `Logger.setHandler` noting that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler. ```js Logger.setHandler(function (messages, context) { diff --git a/package.json b/package.json index 3396b1f..5d46099 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-logger", - "version": "1.3.0", + "version": "1.4.0", "description": "Lightweight, unobtrusive, configurable JavaScript logger", "author": "Jonny Reeves (http://jonnyreeves.co.uk)", "homepage": "http://github.com/jonnyreeves/js-logger",