lib/remote_syslog/cli.rb in remote_syslog-1.4.1 vs lib/remote_syslog/cli.rb in remote_syslog-1.4.2
- old
+ new
@@ -47,11 +47,11 @@
op = OptionParser.new do |opts|
opts.banner = "Usage: remote_syslog [options] <path to add'l log 1> .. <path to add'l log n>"
opts.separator ''
opts.separator "Example: remote_syslog -c configs/logs.yml -p 12345 /var/log/mysqld.log"
opts.separator ''
- opts.separator "Options:"
+ opts.separator "Options (default):"
opts.on("-c", "--configfile PATH", "Path to config (/etc/log_files.yml)") do |v|
@configfile = File.expand_path(v)
end
opts.on("-d", "--dest-host HOSTNAME", "Destination syslog hostname or IP (logs.papertrailapp.com)") do |v|
@@ -150,9 +150,10 @@
end
end
end
def start
+ puts "Watching #{@files.length} files/paths. Sending to #{@dest_host}:#{@dest_port} (#{@tls ? 'TCP/TLS' : 'UDP'})."
EventMachine.run do
if @tls
connection = TlsEndpoint.new(@dest_host, @dest_port)
else
connection = UdpEndpoint.new(@dest_host, @dest_port)