service - How do I create a log entry for the systemd Journal? -


i have service, , have create logs journald daemon in cases. far, have not been able find instructions on how so.

am misunderstanding intended use of journal? or obvious missing?

any appreciated.

if have service, write log standard error. (it's available stream named std::clog in c++, more "log-like" semantics std::cerr.) that's it. it's logging mechanism works systemd, daemontools, daemontools-encore, runit, s6, perp, nosh, freedt, , others.

there api writing systemd journal. make sure have excellent reason locking softwares , users in api, however. writing standard error mechanism works, pretty everywhere. it's understood , easy administrators control, tweak, , comprehend. should first choice.

further reading


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -