Class: Tracker::FileTracker

Inherits:
Base
  • Object
show all
Defined in:
lib/liquid/tracker/file_tracker.rb

Instance Attribute Summary

Attributes inherited from Base

#dimensions

Instance Method Summary collapse

Methods inherited from Base

#initialize, #with_topic

Constructor Details

This class inherits a constructor from Tracker::Base

Instance Method Details

#down?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/liquid/tracker/file_tracker.rb', line 14

def down?
  false
end

#event(topic, data) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/liquid/tracker/file_tracker.rb', line 6

def event(topic, data)
  file = File.open(File.join(ROOT, 'log', "tracker-#{topic}.log"), 'a')
  file.sync = true
  file.write(data)
  file.write("\n")
  file.close
end

#shutdownObject



18
19
# File 'lib/liquid/tracker/file_tracker.rb', line 18

def shutdown
end