# File lib/lumberjack/template.rb, line 27 def initialize(first_line, options = {}) @first_line_template = compile(first_line) additional_lines = options[:additional_lines] || "#{Lumberjack::LINE_SEPARATOR}:message" @additional_line_template = compile(additional_lines) # Formatting the time is relatively expensive, so only do it if it will be used @template_include_time = first_line.include?(":time") || additional_lines.include?(":time") @time_format = options[:time_format] || :milliseconds end