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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C45FBBBAF for ; Tue, 21 Dec 2010 12:17:06 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBAD4bEE3RVdg2kGdsb2JhbACDY5ILjhEIFQEBAQEJCRMRBCClTYk4PIIYhUMuiFcBAQMFgRuBUoFjdASLAg X-IronPort-AV: E=Sophos;i="4.60,207,1291590000"; d="scan'208";a="92973023" Received: from mail-qw0-f54.google.com ([209.85.216.54]) by mail1-smtp-roc.national.inria.fr with ESMTP; 21 Dec 2010 12:17:06 +0100 Received: by qwj9 with SMTP id 9so3825618qwj.27 for ; Tue, 21 Dec 2010 03:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=CuV8QjlpaMsghL21kyxsENGXIt0hugxaAKVsKI8TV4o=; b=PwsB6ZqomXDb6iHMz44V6VLo2KQ0Jyz9LogEVIhLLqizlwv7myqoPN1eiOQgy3I3MR moupU3zL2lLip5EXxpFZb1owtITwYoRT0JbdEALMfXwN7h6EaigMAWbfzomkbOw7Wb9l BNbgN7fx61JLOvKlON9iee8vVO1qTWQmLG5JU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=FWaHmgYv0FYrKBh0GNo0jqhQtDuHqGTQbY6KMD9TY9Wo3auyfnag0ZKM742rL2rYcS s18My6f32xBkmbEHLAsO8oxasa31WU8ahNcGuwfTafYeeUKiK/D1c7qHoIBrX+AwSdkK ZAhsGg40l7UaTnk//1m2L86BR4Qc3jn9oRTlA= Received: by 10.229.217.212 with SMTP id hn20mr4561865qcb.225.1292930212650; Tue, 21 Dec 2010 03:16:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.247.134 with HTTP; Tue, 21 Dec 2010 03:16:32 -0800 (PST) In-Reply-To: References: From: Gregory Bellier Date: Tue, 21 Dec 2010 12:16:32 +0100 Message-ID: Subject: Re: [Caml-list] Re: Logging To: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; le-gall:01 verbose:01 syslog:01 syslog:01 config:01 caml-list:01 functions:01 api:02 seems:03 module:03 handles:03 problem:05 i'd:06 specify:06 correct:08 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 and I would like them to be able to log in the very same file and not in /var/log/user.log but /var/log/my_project.log. That's why it's convenient to call a daemon like syslog which handles the permissions itself. It seems that Lwt_log provides functions to call the syslog daemon to log (which the other module also does) or logs itself. In which case, I'd have the permissions problem because the log file would have the identity of the running process which created it. Please correct me if I'm wrong about Lwt_log. How does Apache proceed ? You can specify where to log in the config file and set it to /var/log/apache.log and it works while the process runs with www-data identity.