From 8ed815943c4f9c96fe5f372403c54ff973e2a853 Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Sat, 15 Mar 2014 00:17:40 +0100 Subject: [PATCH] On Darwin (OS X) the default syslog.log log level is >=NOTICE so the service logger.Info() did no visible logging at all. I promoted "Info" to "Notice" to make the logging visible in console.log without modification of /etc/asl.conf (the system logging configuration file) --- service_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service_darwin.go b/service_darwin.go index 6f0501f..e6a35a8 100644 --- a/service_darwin.go +++ b/service_darwin.go @@ -112,7 +112,8 @@ func (s *darwinLaunchdService) Warning(format string, a ...interface{}) error { return s.logger.Warning(fmt.Sprintf(format, a...)) } func (s *darwinLaunchdService) Info(format string, a ...interface{}) error { - return s.logger.Info(fmt.Sprintf(format, a...)) + // on Darwin syslog.log defaults to loggint >= Notice (see /etc/asl.conf) + return s.logger.Notice(fmt.Sprintf(format, a...)) } var launchdConfig = `