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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6A9C0BBAF for ; Tue, 21 Dec 2010 11:29:43 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQFAA4QEE1QW+UMgWdsb2JhbACVc44ZFQEBFiIkwDSFSQSLAoYN X-IronPort-AV: E=Sophos;i="4.60,207,1291590000"; d="scan'208";a="84497818" Received: from lo.gmane.org ([80.91.229.12]) by mail2-smtp-roc.national.inria.fr with ESMTP; 21 Dec 2010 11:29:43 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PUzTR-0005o8-Mg for caml-list@inria.fr; Tue, 21 Dec 2010 11:29:41 +0100 Received: from avelizy-155-1-1-245.w83-199.abo.wanadoo.fr ([83.199.40.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 11:29:41 +0100 Received: from sylvain by avelizy-155-1-1-245.w83-199.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 11:29:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Logging Date: Tue, 21 Dec 2010 10:29:31 +0000 (UTC) Message-ID: References: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-1-245.w83-199.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) X-Spam: no; 0.00; le-gall:01 syslog:01 syslog:01 inputs:01 ,...:98 wrote:01 unix:01 functions:01 api:02 face:97 debian:04 hack:04 path:07 function:08 recall:10 On 21-12-2010, Gregory Bellier wrote: > Hello. > > Until now, whenever I needed to log something, I used my own function > to log. From now on, I face new problems and I would like to use > syslog to get rid of my logging functions and use the proper unix > ones. However, from what I've seen, syslog logs in messages, user,... > but I can't log in a specific file like "my_project.log" unless I hack > in /etc/syslog.cnf (I don't recall the exact path). > > How do you do in your projects ? I tried the following package: > libsyslog-ocaml-dev on Debian. > > Thanks in advance for any inputs. There is also Lwt_log. http://ocsigen.org/lwt/doc/api/Lwt_log.html Regards, Sylvain Le Gall