Sha256: 70d1fab03f891218a7acc7ba7c9e994b7497a341292529d44bedcf618ae4c233

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

module Flume
  class Logger < ::Logger
    extend Forwardable

    attr_reader :logdev
    def_delegators :logdev, :redis, :redis=
    def_delegators :logdev, :list,  :list=
    def_delegators :logdev, :cap,   :cap=
    def_delegators :logdev, :step,  :step=
    def_delegators :logdev, :cycle, :cycle=
    def_delegators :logdev, :truncate, :size
    def_delegators :logdev, :tail, :tailf

    def initialize(*args, &block)
      super(STDERR)
      @logdev = LogDevice.new(*args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flume-0.0.3 lib/flume/logger.rb
flume-0.0.2 lib/flume/logger.rb