Version: 1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.0.91.0.101.0.111.0.121.0.131.0.141.0.151.0.161.0.171.0.181.1.01.1.11.1.21.1.31.2.01.2.11.2.21.2.31.2.41.2.51.3.01.3.11.3.21.3.31.3.4
isFunction = (obj) -> '[object Function]' is toString.call obj
module.exports = (msg, type = 'log') -> (req, res, next) ->
m = msg
m = msg req if isFunction msg
next console[type] m