examples/logexamp.rb in stomp-1.2.3 vs examples/logexamp.rb in stomp-1.2.4

- old
+ new

@@ -1,21 +1,22 @@ +# -*- encoding: utf-8 -*- + require 'rubygems' require 'stomp' require 'logger' # for the 'local' logger # $:.unshift(File.dirname(__FILE__)) # require 'slogger' # -# A STOMP client program which uses the callback logging facility. +# A STOMP::Connection program which uses the callback logging facility. # llog = Logger::new(STDOUT) llog.level = Logger::DEBUG llog.debug "LE Starting" # ////////////////////////////////////////////////////////////////////////////// mylog = Slogger::new # The client provided STOMP callback logger -# -*- encoding: utf-8 -*- # ////////////////////////////////////////////////////////////////////////////// user = ENV['STOMP_USER'] ? ENV['STOMP_USER'] : 'guest' password = ENV['STOMP_PASSWORD'] ? ENV['STOMP_PASSWORD'] : 'guest' host = ENV['STOMP_HOST'] ? ENV['STOMP_HOST'] : 'localhost'