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

    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)}]"



    messageCounter = @outputCounter()
    messageCounter = @colorize CONST.LINE_COLOR, messageCounter

    output = messageType + messageCounter + @align + message
    output += @colorize colorType, diff if diff
