lib/logging/config/yaml_configurator.rb in logging-0.9.8 vs lib/logging/config/yaml_configurator.rb in logging-1.0.0

- old
+ new

@@ -1,11 +1,8 @@ -require 'yaml' +module Logging::Config -module Logging -module Config - # The YamlConfigurator class is used to configure the Logging framework # using information found in a YAML file. # class YamlConfigurator @@ -135,11 +132,11 @@ l.level = config['level'] if config.has_key?('level') l.additive = config['additive'] if l.respond_to? :additive= l.trace = config['trace'] if l.respond_to? :trace= if config.has_key?('appenders') - l.appenders = config['appenders'].map {|n| ::Logging::Appender[n]} + l.appenders = config['appenders'].map {|n| ::Logging::Appenders[n]} end end end # call-seq: @@ -187,9 +184,8 @@ clazz = ::Logging::Layouts.const_get type clazz.new config end end # class YamlConfigurator -end # module Config -end # module Logging +end # module Logging::Config # EOF