Created
September 14, 2015 03:36
-
-
Save Azerothian/23100b2d9b60dc5a0fc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug = require "debug" | |
debug.enable('mrc:*') | |
module.exports = (prefix="", suffix=":") -> | |
return { | |
log: debug "#{prefix}log#{suffix}" | |
debug: debug "#{prefix}debug#{suffix}" | |
sql: debug "#{prefix}debug:sql#{suffix}" | |
info: debug "#{prefix}info#{suffix}" | |
error: debug "#{prefix}error#{suffix}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment