Struct.new(:time, :level, :lines)
All messages sent to the Logger are stored in Logger.messages and sent to all enabled logger’s log method as Message objects.
Returns an Array of the message lines in the following format:
[YYYY/MM/DD HH:MM:SS][level] message line text
# File lib/backup/logger.rb, line 44 def formatted_lines timestamp = time.strftime("%Y/%m/%d %H:%M:%S") lines.map {|line| "[#{ timestamp }][#{ level }] #{ line }" } end
Generated with the Darkfish Rdoc Generator 2.