                             }
 			    # Do something with the log ;)
 #                            send_log(connection, JSON.stringify(message))
-                            send_syslog(connection, formatSyslogDate(Date.now()), container, frame.content)
+                            send_syslog(connection, syslog_host, syslog_port, syslog_proto, formatSyslogDate(Date.now()), container, frame.content)
                         )
                     catch e
                         console.log 'could not parse packet: '.red + e.message

domain = require('domain')
fs     = require('fs')
net    = require('net')

syslog_port  = process.env.SYSLOG_PORT  || '514'
syslog_host  = process.env.SYSLOG_HOST  || '127.0.0.1'
syslog_proto = process.env.SYSLOG_PROTO || 'tcp'

#Initialize Outgoing log connection
connection = net.createConnection syslog_port, syslog_host
connection.on 'connect', () ->
	console.log "Opened connection to #{syslog_host}:#{syslog_port}/#{syslog_proto}"

connection.on 'error', (err) ->
	console.log "Error connecting to #{syslog_host}:#{syslog_port}/#{syslog_proto}"
	delay 1000, -> connection.connect syslog_port, syslog_host

connection.on 'end', (data) ->
	console.log('Server lost ... Retrying...')
	delay 1000, -> connection.connect syslog_port, syslog_host


#Docker logging Mgmt
console.log('.. initializing docker-log-central (hit ^C to quit)')

######################
#Functions Definition
######################



#Format syslog TimeStamp
formatSyslogDate = (unixtime) ->
  months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
