From 44087d6889fe4af401f5d96e7541bd7fbdf72737 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 19 Nov 2014 17:10:35 +0000 Subject: [PATCH] Add curried trace(), debug() etc. methods to the team object. --- src/mkws-team.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mkws-team.js b/src/mkws-team.js index b402d68..bdb8af9 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -88,8 +88,15 @@ mkws.makeTeam = function($, teamName) { that.queue("log").publish(m_teamName, timestamp, s); } + // ### transitional placeholder function until we have promoted all invocations that.log = function (x) { _log(mkws.log, x) }; + mkws.trace = function(x) { _log(mkws.trace, x) }; + mkws.debug = function(x) { _log(mkws.debug, x) }; + mkws.info = function(x) { _log(mkws.info, x) }; + mkws.warn = function(x) { _log(mkws.warn, x) }; + mkws.error = function(x) { _log(mkws.error, x) }; + mkws.fatal = function(x) { _log(mkws.fatal, x) }; that.log("making new widget team"); -- 1.7.10.4