From cc179a764452c41a57872de169fb5eb8cae1e183 Mon Sep 17 00:00:00 2001 From: brl Date: Mon, 1 Jun 2015 20:19:28 -0400 Subject: [PATCH] Comment explaining how log messages are transmitted from oz-init to oz-daemon --- oz-init/init.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oz-init/init.go b/oz-init/init.go index d96bffb..16f34fb 100644 --- a/oz-init/init.go +++ b/oz-init/init.go @@ -17,6 +17,9 @@ const profileDirectory = "/var/lib/oz/cells.d" var log = createLogger() +// By convention oz-init writes log messages to stderr with a single character +// prefix indicating the logging level. These messages are read one line at a time +// over a pipe by oz-daemon and translated into appropriate log events. func createLogger() *logging.Logger { l := logging.MustGetLogger("oz-init") be := logging.NewLogBackend(os.Stderr, "", 0)