lib/td/logger.rb in td-logger-0.3.0 vs lib/td/logger.rb in td-logger-0.3.1

- old
+ new

@@ -16,13 +16,17 @@ def self.open_null @@logger = Fluent::Logger::NullLogger.new end - def self.post(tag, record, time=nil) - @@logger.post(tag, record, time) + def self.post(tag, record={}) + @@logger.post(tag, record) end + + def self.post_with_time(tag, record={}, time) + @@logger.post_with_time(tag, record, time) + end end end # shortcut methods @@ -39,11 +43,15 @@ def self.open_null TreasureData::Logger.open_null end - def self.post(tag, record, time=nil) - TreasureData::Logger.post(tag, record, time) + def self.post(tag, record={}) + TreasureData::Logger.post(tag, record) + end + + def self.post_with_time(tag, record={}, time) + TreasureData::Logger.post_with_time(tag, record, time) end def self.event TreasureData::Logger.event end