require 'osx/cocoa'

class RawOutputView < HtmlView  
  def initialize(webview)
    @web_view = webview
  end  
  
  def update
    return if $raw_output.empty?
    html = '<ul class="raw_output">'
    $raw_output.compact.each do |output|
      html << '<li>'
      html << "<small>#{output[0].strftime("%H:%M:%S")}</small>"
      html << '<hr>'
      html << "<pre>#{output[1]}</pre>"
      html << '</li>'
    end
    html << '</ul>'
    setInnerHTML('content', html)    
  end
end
require 'osx/cocoa'

class RawOutputView < HtmlView  
  def initialize(webview)
    @web_view = webview
  end  
  
  def update
    return if $raw_output.empty?
    html = '<ul class="raw_output">'
    $raw_output.compact.each do |output|
      html << '<li>'
      html << "<small>#{output[0].strftime("%b %d, %H:%M:%S")}</small>"
      html << '<hr>'
      html << "<pre>#{output[1]}</pre>"
      html << '</li>'
    end
    html << '</ul>'
    setInnerHTML('content', html)    
  end
end
Add the date to the timestamp in the log output, to add just a bit more context (helpful when you have RSpactor running for days on end).
Add the date to the timestamp in the log output, to add just a bit more context (helpful when you have RSpactor running for days on end).

Signed-off-by: Andreas Wolff <454a08182fae7f7960d8a9a6764ff415cde95dea@dynamicdudes.com>