Sha256: 2fbe66f7b1354364e2be475ad3f9fca7c38874808005d160e523a4cd7f0fdaf8

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

require 'fluent-logger'

module FluentLoggerStatistics
  module FluentLoggerExt
    def pending_bytesize
      if @pending
        @pending.bytesize
      else
        0
      end
    end
  end
end

Fluent::Logger::FluentLogger.include(FluentLoggerStatistics::FluentLoggerExt)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent_logger_statistics-0.3.0 lib/fluent_logger_statistics/fluent_logger.rb
fluent_logger_statistics-0.2.0 lib/fluent_logger_statistics/fluent_logger.rb