My code contains a lot of std::cout
.
I got a call from sysadmin telling me that I am filling up the /var/log/messages
folder and the syslog filesystem. But, my user ID does not have access to either /var
, which requires root permissions for writing, I don't use syslog.
My assumption is that somehow, Linux must be configured to redirect cout
to the syslog server.
My question is what are the settings in Linux, which makes the above feasible (i.e. redirect cout
to syslog)?