From adf5d66ee7cf09769ae7a39c83dd9b9d9aa8369f Mon Sep 17 00:00:00 2001 From: rbutley Date: Fri, 26 Jun 2020 13:44:40 +0530 Subject: [PATCH] logging in syslog --- haproxy/config.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/haproxy/config.go b/haproxy/config.go index e4fb48e..da68718 100644 --- a/haproxy/config.go +++ b/haproxy/config.go @@ -26,12 +26,18 @@ global stats socket {{.SocketPath}} mode 600 level admin expose-fd listeners stats timeout 2m tune.ssl.default-dh-param 1024 + log /dev/log local0 info alert nbproc 1 nbthread {{.NbThread}} log-tag haproxy_sidecar userlist controller user {{.DataplaneUser}} insecure-password {{.DataplanePass}} + +defaults + mode http + log global + log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq %bq %hr %hs %{+Q}r %U" ` const spoeConfTmpl = ` @@ -107,7 +113,7 @@ func newHaConfig(baseDir string, sd *lib.Shutdown) (*haConfig, error) { return nil, err } defer cfgFile.Close() - + log.Info(" !!! Config HAProxy Path :::- ", cfg.HAProxy) dataplanePass = createRandomString() err = tmpl.Execute(cfgFile, baseParams{