# File /home/cepheus/projects/prep/log4r-1.0.0/src/log4r/patternformatter.rb, line 56
    def initialize(hash)
      @pattern = hash['pattern']
      @pattern = hash[:pattern] if @pattern.nil?
      @date_pattern = hash['date_pattern']
      @date_pattern = hash[:date_pattern] if @date_pattern.nil?
      @date_method = hash['date_method']
      @date_method = hash[:date_method] if @date_method.nil?
      if @date_pattern.nil? and @date_method.nil?
        @date_pattern = ISO8601
      end
      PatternFormatter.create_format_methods(self)
    end