From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 20A10BBAF for ; Tue, 21 Dec 2010 12:47:47 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAPsiEE3Vujhf/2dsb2JhbACkBnPAK4VJBA X-IronPort-AV: E=Sophos;i="4.60,207,1291590000"; d="scan'208";a="83294331" Received: from witko.kerneis.info ([213.186.56.95]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 21 Dec 2010 12:47:46 +0100 Received: from [2001:660:3301:8061:21c:25ff:fecf:737a] (helo=rhodium.pps.jussieu.fr) by witko.kerneis.info with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1PV0gz-0000x3-U0; Tue, 21 Dec 2010 12:47:46 +0100 Received: from kerneis by rhodium.pps.jussieu.fr with local (Exim 4.72) (envelope-from ) id 1PV0gf-0000xv-7b; Tue, 21 Dec 2010 12:47:25 +0100 Date: Tue, 21 Dec 2010 12:47:25 +0100 From: Gabriel Kerneis To: =?iso-8859-1?B?VPZy9ms=?= Edwin Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Re: Logging Message-ID: <20101221114725.GA3650@rhodium.pps.jussieu.fr> References: <4D108DC8.60008@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4D108DC8.60008@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 2001:660:3301:8061:21c:25ff:fecf:737a X-SA-Exim-Mail-From: kerneis@pps.jussieu.fr X-SA-Exim-Scanned: No (on witko.kerneis.info); SAEximRunCond expanded to false X-Spam: no; 0.00; 0200,:01 le-gall:01 verbose:01 edwin:98 wrote:01 wrote:01 pps:01 caml-list:01 jussieu:01 writes:01 api:02 root:04 concurrent:04 dec:05 tue:06 On Tue, Dec 21, 2010 at 01:21:44PM +0200, Török Edwin wrote: > On 2010-12-21 13:16, Gregory Bellier wrote: > > 2010/12/21 Sylvain Le Gall : > >> > >> There is also Lwt_log. > >> http://ocsigen.org/lwt/doc/api/Lwt_log.html > > > > To be more verbose, I have two processes with two different effective > > uid > > If both processes start out as root then you can open the logfile before > dropping privileges. But you must take care of concurrent writes (which is the reason why a daemon is still a good idea). Best, -- Gabriel