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 p79GVqW6032653 for ; Tue, 9 Aug 2011 18:31:52 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwBAGdgQU68pSHKmWdsb2JhbABCmCSPLgEBAQEBCAsLBxQlgUABAQQBeQULCxguVxmHbQK/AYVnXwSjcg X-IronPort-AV: E=Sophos;i="4.67,344,1309730400"; d="scan'208";a="105070476" Received: from 13.mo3.mail-out.ovh.net (HELO mo3.mail-out.ovh.net) ([188.165.33.202]) by mail4-smtp-sop.national.inria.fr with ESMTP; 09 Aug 2011 18:31:47 +0200 Received: from mail417.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 80C5910082CF for ; Tue, 9 Aug 2011 18:31:55 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 9 Aug 2011 18:31:46 +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; 9 Aug 2011 18:31:46 +0200 X-Ovh-Mailout: 178.32.228.3 (mo3.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: <4E403443.9070709@fugmann.net> Date: Tue, 9 Aug 2011 18:31:46 +0200 Cc: Xavier Clerc Message-Id: <5F36637B-0FD9-4AB5-B12F-CBF5EB58BC27@x9c.fr> References: <4E37EBA3.6040800@fugmann.net> <4E386A65.8080000@ens-lyon.org> <4E38E4F8.6020300@fugmann.net> <4E3A5109.9030002@fugmann.net> <56CD527B-3F34-4D32-8BDC-6C952F3D9BF3@x9c.fr> <4E403443.9070709@fugmann.net> To: caml-list@inria.fr X-Mailer: Apple Mail (2.1244.3) X-Ovh-Tracer-Id: 6985645972474299168 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: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfedvjedrtdehucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucculddquddttddm Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p79GVqW6032653 Subject: Re: [Caml-list] filename and line number. Le 8 août 2011 à 21:08, Anders Peter Fugmann a écrit : > Hi Xavier, > > On 2011-08-04 15:03, forum@x9c.fr wrote: >> 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. > > When we tried bolt, the main issue was log rotation. We wanted to make sure that logs were rotated so they would not fill up all disk space. > > Bolt does indeed do log rotation, but the files created files by bold includes either timestamp or pid, which changes between program invocation. This makes to harder to see which file is the current, and leaves a lot of log files during development. The ability to put either the timestamp or the pid is just a possibility; you can as well just use a "constant" file name. In that latter case, the file will be replaced at each rotation. > We therefore decided to send all log to stdout, and capture it though a simple program that would reopen the file when it received SIGHUP. The feature of rotating not on time information but on the reception of a signal seems quite easy to add. > (Logging to stdout is also helpful when developing). My bad, the documentation is lacking the following information: if you use "" (without the quotes) as the filename, then the data will be written on standard output. > As we no longer used Bolt for log rotation, we decided to leave bolt, keeping external dependencies down. > > If bolt had the ability to reopen the log file on SIGHUB (or a function to reopen the log file), we would probably still be using it. That combined with the ability to log to stdout when developing would make it very useful. As I have other incentives to publish an updated version of Bolt, I will try to release a version featuring that signal thing "soon". Regards, Xavier Clerc