
This commit adds log messages to the IPSec Auth server and client following the requirements bellow: - Debug, info and error log levels should be present in client code. - Log should include level indicator after date and time stamp - Default log level is info - Logs should be present in a log file at /var/log directory Test Plan: PASS: In a DX controller-0 acting as IPsec Auth server and a worker-0 acting as IPsec Auth client, execute the command 'sudo ipsec-client pxecontroller' and see the log messages generated in the screen and in the file /var/log/ipsec-auth.log Story: 2010940 Task: 49464 Co-Authored-By: Manoel Benedito Neto <manoel.beneditoneto@windriver.com> Change-Id: Icbdc299022c19e0c1513e0fcb9429494b3a87d04 Signed-off-by: Leonardo Mendes <Leonardo.MendesSantana@windriver.com>
13 lines
503 B
Plaintext
13 lines
503 B
Plaintext
template t_auth {
|
|
template("${R_YEAR}-${R_MONTH}-${R_DAY}T${R_HOUR}:${R_MIN}:${R_SEC}.${R_MSEC} ${MSG}\n");
|
|
template-escape(no);
|
|
};
|
|
|
|
filter f_ipsecclient { facility(local6) and program(ipsec-client); };
|
|
filter f_ipsecserver { facility(local6) and program(ipsec-server); };
|
|
|
|
destination d_ipsecauth { file("/var/log/ipsec-auth.log" template(t_auth));};
|
|
|
|
log { source(s_src); filter(f_ipsecclient); destination(d_ipsecauth); };
|
|
log { source(s_src); filter(f_ipsecserver); destination(d_ipsecauth); };
|