From: David Scott Date: Fri, 30 Oct 2009 12:50:07 +0000 (+0000) Subject: Switch all xapi syslog logging to 'local6' rather than 'daemon' (ie same as blktapcnt... X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b6cc756179688c547a34031e475e9294960d0998;p=xcp%2Fxen-api-libs.git Switch all xapi syslog logging to 'local6' rather than 'daemon' (ie same as blktapcntrl is about to use). This allows us to (i) keep logging through syslog; but (ii) define in the syslog.conf whether the data is written synchronously or not. Signed-off-by: David Scott --- diff --git a/log/log.ml b/log/log.ml index 3d3b0e4..c6dbac4 100644 --- a/log/log.ml +++ b/log/log.ml @@ -264,7 +264,7 @@ let output_common t ?(raw=false) ?(key="") ?(extra="") priority (message: string | Info -> Syslog.Info | Warn -> Syslog.Warning | Error -> Syslog.Err in - Syslog.log Syslog.Daemon sys_prio ((construct_string false) ^ "\n") + Syslog.log Syslog.Local6 sys_prio ((construct_string false) ^ "\n") | Stream s -> Mutex.execute s.mutex (fun () -> match !(s.channel) with