# File lib/puppet/util/log/destinations.rb, line 142
142:   def initialize(host)
143:     Puppet.info "Treating #{host} as a hostname"
144:     args = {}
145:     if host =~ /:(\d+)/
146:       args[:Port] = $1
147:       args[:Server] = host.sub(/:\d+/, '')
148:     else
149:       args[:Server] = host
150:     end
151: 
152:     @name = host
153: 
154:     @driver = Puppet::Network::Client::LogClient.new(args)
155:   end