Class: ReeLogger::BuildLogger

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_logger/package/ree_logger/functions/build_logger.rb

Instance Method Summary collapse

Instance Method Details

#call(appenders, progname, rate_limiter, filter_words) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/ree_lib/packages/ree_logger/package/ree_logger/functions/build_logger.rb', line 18

def call(appenders, progname, rate_limiter, filter_words)
  logger = MultiLogger.new(progname, rate_limiter, filter_words)

  appenders.each do |appender|
    logger.add_appender(appender)
  end

  logger
end