lib/halog/log_entry.rb
def message
      if not @message then
        [HTTPLogMessage, TCPLogMessage, StringLogMessage].each do |klass|
          @message = klass.parse(raw_message)
          break if @message
        end
      end
      return @message
    end
# convert the text of the message into a more knowledgable class
# StringLogMessage is a failsafe, it just wraps up a String with a 
# ducktype call for parse
convert the text of the message into a more knowledgable class
StringLogMessage is a failsafe, it just wraps up a String with a
ducktype call for parse
convert the text of the message into a more knowledgable class StringLogMessage is a failsafe it just wraps up a String with a ducktype call for parse
def message
      if not @message then
        [HTTPLogMessage, TCPLogMessage, StringLogMessage].each do |klass|
          @message = klass.parse(raw_message)
          break if @message
        end
      end
      return @message
    end
def message if not @message then [ HTTPLogMessage , TCPLogMessage , StringLogMessage ] . each do | klass | @message = klass . parse ( raw_message ) break if @message end end return @message end
convert the text of the message into a more knowledgable class
StringLogMessage is a failsafe, it just wraps up a String with a
ducktype call for parse
convert the text of the message into a more knowledgable class StringLogMessage is a failsafe it just wraps up a String with a ducktype call for parse