     for type of @types
       @transport @generateMessage type, message for message in @messages[type]
 
+  decorateCounter: (counter) ->
+    str = '' + counter
+    n = CONST.DECORATE_COUNTER_ZERO_N - str.length
+    return '0'.repeat(n) + str if n > 0
+    str
+
   outputMessage: (message) -> message
 
   outputType: (type) ->

    type = type.toUpperCase() if @upperCase
    type

  decorateCounter: (counter) ->
    str = '' + counter
    n = CONST.DECORATE_COUNTER_ZERO_N - str.length
    return '0'.repeat(n) + str if n > 0
    str

  outputCounter: ->
    now = new Date
    diff = now - @timestamp

    ++@counter if (diff > 1000)

    @timestamp = new Date()
    " [#{@decorateCounter(@counter)}]"



  generateMessage: (type, message) ->
    return unless @isPrintable type
    colorType   = @types[type].color
    message     = @outputMessage message
    message     = @colorizeMessage type, message
