Method: Arrow::Logger::ArrayOutputter#write
- Defined in:
- lib/arrow/logger/arrayoutputter.rb
#write(time, level, name, frame, msg) ⇒ Object
Write the given level
, name
, frame
, and msg
to the target output mechanism. Subclasses can call this with a block which will be passed the formatted message. If no block is supplied by the child, this method will check to see if $DEBUG is set, and if it is, write the log message to $deferr.
53 54 55 56 57 58 59 |
# File 'lib/arrow/logger/arrayoutputter.rb', line 53 def write( time, level, name, frame, msg ) escaped_msg = escape_html( msg ) escaped_name = escape_html( name ) html = self.format.interpolate( binding ) @array << html end |