Sha256: bed316c34a6b5eb10435fb2be85f30b425820bb27b0f136a44b62d1ed912a6ea
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
require 'fluent/logger' module TreasureData def self.open(apikey, database, auto_create_table=false) require 'td/logger/tdlog' TreasureData::Logger::TreasureDataLogger.open(apikey, database, auto_create_table) end def self.open_agent(tag, agent_host, agent_port) Fluent::Logger::FluentLogger.open(tag, agent_host, agent_port) end def self.log(tag, record) Fluent::Logger.post(tag, record) end end class Time def to_msgpack(out = '') to_i.to_msgpack(out) end end if defined? Rails require 'td/logger/agent/rails' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
td-logger-0.2.8 | lib/td/logger.rb |
td-logger-0.2.7 | lib/td/logger.rb |
td-logger-0.2.6 | lib/td/logger.rb |