Class: Utracker::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/utracker/logger.rb

Direct Known Subclasses

StdoutLogger

Defined Under Namespace

Classes: Event

Instance Method Summary collapse

Instance Method Details

#log(message, description, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/utracker/logger.rb', line 10

def log(message, description, options={})
  event = Event.new(
    Time.now,
    Utracker.config[:service_name],
    description,
    message,
    options
  )
  write(event)
end