def layout( config )
      return ::Logsly::Logging182::Layouts::Basic.new if config.nil?

      type = config.delete(:type)
      raise Error, 'layout type not given' if type.nil?

      clazz = ::Logsly::Logging182::Layouts.const_get type
      clazz.new config
    rescue NameError
      raise Error, "unknown layout class Logsly::Logging182::Layouts::#{type}"
    end
def layout( config )
      return ::Logsly::Logging182::Layouts::Basic.new if config.nil?

      type = config.delete(:type)
      raise Error, 'layout type not given' if type.nil?

      clazz = ::Logsly::Logging182::Layouts.const_get type
      clazz.new config
    rescue NameError
      raise Error, "unknown layout class Logsly::Logging182::Layouts::#{type}"
    end
call-seq:
    layout( config )

 Creates a new Layout based on the given _config_ options (a hash).
 The type of Layout created is determined by the 'type' option in the
 config. The remaining config options are passed to the Layout
 initializer.