Hi!
I'm planning to package OpenTibia Server for Debian. One of the things I want to do is add startup via /etc/init.d
and daemonization of the otserv
process.
Thing is, we should probably redirect output to syslog. This is usually done via the syslog()
function. Currently, the code is swarmed with:
std::cout << "Stuff to printout" << std::endl;
Is there a proper, easy to add, way to redirect standard output and standard error output into syslog without replacing every single "call" to std::cout and friends?