From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p74D3YjQ006454 for ; Thu, 4 Aug 2011 15:03:34 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao0BAH2XOk4uaT95mWdsb2JhbABCmE6PLAEBAQEBCAsLBxQlgUABAQQBeQULC0ZXiAUCwgqFY18Eo2E X-IronPort-AV: E=Sophos;i="4.67,316,1309730400"; d="scan'208";a="104689204" Received: from 1.mo2.mail-out.ovh.net (HELO mo2.mail-out.ovh.net) ([46.105.63.121]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Aug 2011 15:03:28 +0200 Received: from mail626.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 3C91CDC0EEB for ; Thu, 4 Aug 2011 15:05:03 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 4 Aug 2011 15:08:28 +0200 Received: from ip-149.net-82-216-0.versailles2.rev.numericable.fr (HELO ?192.168.0.10?) (forum%x9c.fr@82.216.0.149) by ns0.ovh.net with SMTP; 4 Aug 2011 15:08:26 +0200 X-Ovh-Mailout: 178.32.228.2 (mo2.mail-out.ovh.net) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=windows-1252 From: "forum@x9c.fr" In-Reply-To: <4E3A5109.9030002@fugmann.net> Date: Thu, 4 Aug 2011 15:03:22 +0200 Cc: Xavier Clerc Message-Id: <56CD527B-3F34-4D32-8BDC-6C952F3D9BF3@x9c.fr> References: <4E37EBA3.6040800@fugmann.net> <4E386A65.8080000@ens-lyon.org> <4E38E4F8.6020300@fugmann.net> <4E3A5109.9030002@fugmann.net> To: caml-list@inria.fr X-Mailer: Apple Mail (2.1244.3) X-Ovh-Tracer-Id: 11081669834331456288 X-Ovh-Remote: 82.216.0.149 (ip-149.net-82-216-0.versailles2.rev.numericable.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -150 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfedvhedrtdegucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucculddquddttddmneifvgcutghouhhlugcunhhothculddqhedtmd Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p74D3YjQ006454 Subject: Re: [Caml-list] filename and line number. Le 4 août 2011 à 09:58, Anders Fugmann a écrit : > On 08/03/2011 09:10 AM, Gabriel Scherer wrote: (…) >> You may also be interested in the existing logging frameworks for >> OCaml, such as Bolt: >> http://bolt.x9c.fr/ > We actually did try it out, but we could not get it to do log rotation properly. We ended up logging to stdout and pipe stdout through a program that would send all data to disk, and reopen files whenever it received HUP sigal. logrotate would then do the actual log rotation. Could you elaborate on what was missing, or buggy in Bolt? As long as it fits with its design, I may try to fix it to suit your needs. Regards, Xavier Clerc