From: Mike Taylor Date: Wed, 19 Nov 2014 17:10:35 +0000 (+0000) Subject: Add curried trace(), debug() etc. methods to the team object. X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=44087d6889fe4af401f5d96e7541bd7fbdf72737;ds=sidebyside Add curried trace(), debug() etc. methods to the team object. --- 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");