# File lib/logging/layouts/pattern.rb, line 244 def initialize( opts = {} ) super @created_at = Time.now @date_pattern = opts.getopt(:date_pattern) @date_method = opts.getopt(:date_method) @date_pattern = ISO8601 if @date_pattern.nil? and @date_method.nil? @pattern = opts.getopt(:pattern, "[%d] %-#{::Logging::MAX_LEVEL_LENGTH}l -- %c : %m\n") Pattern.create_date_format_methods(self) Pattern.create_format_method(self) end