Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.534 kb
require 'colors'
module.exports = log =
name: 'default'
log: (str...) -> console.log '[' + log.name.magenta + ']', str...
debug: (str...) -> console.log '[' + log.name.magenta, '-', 'debug'.green + ']', str...
info: (str...) -> console.log '[' + log.name.magenta, '-', 'info'.white + ']', str...
warn: (str...) -> console.log '[' + log.name.magenta, '-', 'warn'.yellow + ']', str...
error: (str...) -> console.log '[' + log.name.magenta, '-', 'error'.red + ']', str...
setName: (str) -> log.name = str
Jump to Line
Something went wrong with that request. Please try again.