class Yal
Public Class Methods
new(sps_host: nil, sps_port: 59000, udp_host: '127.0.0.1', udp_port: '1024', subtopic: '')
click to toggle source
# File lib/yal.rb, line 58 def initialize(sps_host: nil, sps_port: 59000, udp_host: '127.0.0.1', udp_port: '1024', subtopic: '') @udplog = UDPlog.new(udp_host, udp_port, topic='udplog', subtopic: subtopic) if sps_host then @spslog = SPSPubLogDRbClient.new(host: sps_host, port: sps_port) end end
Public Instance Methods
debug(s)
click to toggle source
# File lib/yal.rb, line 70 def debug(s) @udplog.debug s end
error(s)
click to toggle source
# File lib/yal.rb, line 74 def error(s) @udplog.error s @spslog.error s if @spslog end
fatal(s)
click to toggle source
# File lib/yal.rb, line 79 def fatal(s) @spslog.fatal s if @spslog end
info(s)
click to toggle source
# File lib/yal.rb, line 83 def info(s) @udplog.info s end