3 ms·
One thing not addressed in other comments: Please do not write logs to standard output, as implied by this article. Write them to standard error. In C++, one
by JdeBP 7y ago
One thing not addressed in other comments: Please do not write logs to standard output, as implied by this article. Write them to standard error. In C++, one even has an explicit std::clog stream.
Of the service management frameworks that handle service logging for you, some do not by default collect what is written to standard output, but they will all collect what is written to standard error. This is also the Unix convention of long-standing for diagnostic messages, going back to the very reason that standard error was invented in the first place.
* http://jdebp.uk./FGA/daemontools-family.html#Logging http://jdebp.uk./FGA/daemontools-family.html#Logging