# File log4r/outputter/fileoutputter.rb, line 16
    def initialize(_name, hash={})
      super(_name, nil, hash)
      _filename = (hash[filename:filename] or hash['filename'])
      @trunc = Log4rTools.decode_bool(hash, trunc:trunc, true)
      raise TypeError, "Filename must be specified" if _filename.nil?
      if _filename.type != String
        raise TypeError, "Argument 'filename' must be a String", caller
      end

      @filename = _filename
      @out = File.new(@filename, (@trunc ? "w" : "a")) 
      Logger.log_internal {
        "FileOutputter '#{@name}' writing to #{@filename}"
      }
    end