caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gregory Bellier <gregory.bellier@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Logging
Date: Tue, 21 Dec 2010 12:16:32 +0100	[thread overview]
Message-ID: <AANLkTikACnAmd=7Yzuec-dmu7hnUV9U2EMdO=Bz_Nmm2@mail.gmail.com> (raw)
In-Reply-To: <slrnih10cb.ut5.sylvain@gallu.homelinux.org>

2010/12/21 Sylvain Le Gall <sylvain@le-gall.net>:
>
> 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.


  reply	other threads:[~2010-12-21 11:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21  9:51 Logging Gregory Bellier
2010-12-21 10:29 ` Logging Sylvain Le Gall
2010-12-21 11:16   ` Gregory Bellier [this message]
2010-12-21 11:21     ` [Caml-list] Logging Török Edwin
2010-12-21 11:47       ` Gabriel Kerneis
2010-12-21 14:33     ` Michael Ekstrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikACnAmd=7Yzuec-dmu7hnUV9U2EMdO=Bz_Nmm2@mail.gmail.com' \
    --to=gregory.bellier@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).