# File lib/logging/config/yaml_configurator.rb, line 24
      def load( file, key = 'logging_config' )
        io, close = nil, false
        case file
        when String
          io = File.open(file, 'r')
          close = true
        when IO
          io = file
        else
          raise Error, 'expecting a filename or a File'
        end

        begin
          new(io, key).load
        ensure
          io.close if close
        end
        nil
      end