+ @verbose = true
+ @log_nest = 0
+ @log_mid = false
+
+ log_whitespace: ->
+ out = ''
+ out += '\n' if @log_mid
+ for i in [0...@log_nest]
+ out += '\t'
+ return out
+
+ log_start: (msg) ->
+ return unless @verbose
+ process.stdout.write "#{@log_whitespace()}#{msg}"
+ @log_nest += 1
+ @log_mid = true
+
+ log_end: ->
+ return unless @verbose
+ @log_nest -= 1
+ if @log_mid
+ process.stdout.write "... done\n"
+ else
+ process.stdout.write "#{@log_whitespace()}done\n"
+ @log_mid = false