Sha256: c94e13269f25db425a6b925ce84aaf81e0672b74b1c06b9874716639914d4371
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
require File.join(File.dirname(__FILE__), "http", "log_pile") require File.join(File.dirname(__FILE__), "http", "log_truck") module Timber module LogDevices class HTTP < LogDevice SPLIT_LINES = false attr_reader :application_key def initialize(application_key = nil) @application_key = application_key || Config.application_key if @application_key.nil? raise ArgumentError.new("A Timber application_key is required") end LogTruck.start! end def close(*args) end private def write_log_line(log_line) LogPile.get(application_key).drop(log_line) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/log_devices/http.rb |