Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 26, 2016
1 parent 0064885 commit 0146df6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/Default.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ module.exports =
diff = now - @timestamp
++@counter if (diff > 1000)
@timestamp = new Date()
" [#{@decorateCounter(@counter)}]"
"[#{@decorateCounter(@counter)}]"

outputContext: ->
@context

transport: console.log

Expand All @@ -85,7 +88,10 @@ module.exports =
messageCounter = @outputCounter()
messageCounter = @colorize CONST.LINE_COLOR, messageCounter

output = messageType + messageCounter + @align + message
messageContext = @outputContext()
messageContext = @colorize CONST.LINE_COLOR, messageContext

output = "#{messageType} #{messageCounter} #{messageContext} #{@align}#{message}"
output += @colorize colorType, diff if diff
output

Expand Down Expand Up @@ -131,10 +137,11 @@ module.exports =

keyword: null
diff: false
align: "\t\t\t"
align: "\t\t"
color: true
counter: 0
cli: false
context: 'test'

timestamp: new Date()

Expand Down

0 comments on commit 0146df6

Please sign in to comment.