Sha256: ccd15de46fda1c1b8bc8e9498ce06bd296d51294a3a9bb8b43e233e71ff22ba8
Contents?: true
Size: 618 Bytes
Versions: 21
Compression:
Stored size: 618 Bytes
Contents
module LogStashLogger class << self def configure(&block) @configuration = Configuration.new(&block) if block_given? || @configuration.nil? @configuration end alias :configuration :configure end class Configuration attr_accessor :customize_event_block attr_accessor :max_message_size attr_accessor :default_error_logger def initialize(*args) @customize_event_block = nil @default_error_logger = Logger.new($stderr) yield self if block_given? self end def customize_event(&block) @customize_event_block = block end end end
Version data entries
21 entries across 21 versions & 3 rubygems