Actions
Feature #22570
openEnable syslog for candlepin
Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Description
By default candlepin uses rolling file appender, we want it to log into syslog which is currently supported upstream. Use local4 facility for all logs. By default candlepin does put correlation id (csid) on each line, the logging line should look like:
<pattern>[%X{requestType}=%X{requestUuid}, org=%X{org}, csid=%X{csid}] %-5p %c - %m%n</pattern>
More details how to configure syslog for candlepin: http://www.candlepinproject.org/docs/candlepin/logging.html#logging-to-syslog
Also configure syslog to file all local4 logs into /var/log/candlepin/candlepin.log so users find it on the old path for easy transition. In the first phase, candlepin will only log in plaintext. Although it is possible to change the pattern to log in JSON format, installer will not support that for now.
Actions