 # default level = debug
 exports.level = 4
 
+# default options
+exports.defaultConfig = 
+	showMillis: false
+	showTimestamp: true
+	printObjFunc: JSON.stringify
+	prefix: ""
+
 module.exports = class Logger
-
-	@defaultConfig = 
-		showMillis: false
-		showTimestamp: true
-		stringifyJSON: true
-		prefix: ""
 		
 	@levels =
 		error: 1

		
	debug: (msg) ->
		@log msg,4,'debug'

			date = new Date
			timestamp = date.getFullYear()+"-"+@padZeros((date.getMonth()+1),2)+"-"+@padZeros(date.getDate(),2)+" "+@padZeros(date.getHours(),2)+":"+@padZeros(date.getMinutes(),2)+":"+@padZeros(date.getSeconds(),2)
			timestamp += "."+@padZeros(date.getMilliseconds(),3) if @config.showMillis
			msg = @config.printObjFunc.apply msg if typeof msg == "Object"
			output = ''
			output += '['+timestamp+']' if @config.showTimestamp
			output += ' '+@config.prefix if @config.prefix != ""
