The default log formatter class.
The format for dumping exceptions
The default HTML fragment that'll be used as the template for each log message.
Override the logging formats with ones that generate HTML fragments
# File lib/loggability/formatter/html.rb, line 37 def initialize( format=HTML_LOG_FORMAT ) # :notnew: super end
Format the specified object for output to the log.
# File lib/loggability/formatter/html.rb, line 53 def msg2str( object, severity ) case object when String return escape_html( object ) when Exception return HTML_EXCEPTION_FORMAT % [ object.class, escape_html(object.message), escape_html(object.backtrace.first) ] else return escape_html(object.inspect) end end
Generated with the Darkfish Rdoc Generator 2.