lib/relaton_bib/util.rb in relaton-bib-1.18.5 vs lib/relaton_bib/util.rb in relaton-bib-1.19.0

- old
+ new

@@ -1,17 +1,16 @@ module RelatonBib module Util extend self - def method_missing(...) - logger.send(...) - end + PROGNAME = "relaton-bib".freeze - def respond_to_missing?(method_name, include_private = false) - logger.respond_to?(method_name) || super + def method_missing(method_name, msg = nil, prog = nil, **opts, &block) + prog ||= self::PROGNAME + Relaton.logger_pool.send method_name, msg, prog, **opts, &block end - def logger - RelatonBib.configuration.logger + def respond_to_missing?(method_name, include_private = false) + Relaton.logger_pool.respond_to?(method_name) || super end end end