Parent

Methods

Log4r::ObjectFormatter

Formats objects the same way irb does:

  loggername:foo.rb in 12>
  [1, 3, 4]
  loggername:foo.rb in 13>
  {1=>"1"}

Strings don’t get inspected. just printed. The trace is optional.

Public Instance Methods

format(event) click to toggle source

(Not documented)

# File log4r/formatter/formatter.rb, line 92
    def format(event)
      buff = event.logger.name
      buff << (event.tracer.nil? ? "" : ":#{event.tracer[0]}") + ">\n"
      buff << (event.data.kind_of?(String) ? event.data : event.data.inspect)
      buff << "\n"
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.