# File lib/puppet/util/log.rb, line 314 314: def initialize(host) 315: Puppet.info "Treating %s as a hostname" % host 316: args = {} 317: if host =~ /:(\d+)/ 318: args[:Port] = $1 319: args[:Server] = host.sub(/:\d+/, '') 320: else 321: args[:Server] = host 322: end 323: 324: @name = host 325: 326: @driver = Puppet::Network::Client::LogClient.new(args) 327: end