Sha256: 9874d8a0d367f4fecdbc7f5e1965435cce02a6b255ef443b3a44fc1a8c97102f

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require 'liquid/tracker/base'

module Tracker
  class FileTracker < Base

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

    def down?
      false
    end

    def shutdown
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
liquid-ext-3.0.0 lib/liquid/tracker/file_tracker.rb