class EasyProfiler::FirebugLogger

A logger used to output logs to the Firebug console.

Based on rails.aizatto.com/category/plugins/firebug-logger/

Attributes

logs[RW]

Public Instance Methods

clear() click to toggle source

Clear the logs.

# File lib/easy_prof/firebug_logger.rb, line 13
def clear
  @logs = []
end
info(message = nil) { || ... } click to toggle source

Adds a line to the log.

arguments

  • message – log message to be logged

  • block – optional. Return value of the block will be the message that will be logged.

# File lib/easy_prof/firebug_logger.rb, line 22
def info(message = nil)
  message = yield if message.nil? && block_given?
  @logs << message
end