# File lib/logging/config/configurator.rb, line 120 def layout( config ) return ::Logging::Layouts::Basic.new if config.nil? type = config.delete(:type) raise Error, 'layout type not given' if type.nil? clazz = ::Logging::Layouts.const_get type clazz.new config rescue NameError => err raise Error, "unknown layout class Logging::Layouts::#{type}" end