Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile.starynkevitch@inria.fr>
To: Benjamin Geer <ben@socialtools.net>, caml-list@inria.fr
Subject: Re: [Caml-list] syslog interface?
Date: Wed, 8 Oct 2003 09:58:25 +0200	[thread overview]
Message-ID: <20031008075825.GA16836@bourg.inria.fr> (raw)
In-Reply-To: <3F837FF9.9030306@socialtools.net>

On Wed, Oct 08, 2003 at 04:09:45AM +0100, Benjamin Geer wrote:

> Does anyone know of an ocaml interface to the Unix syslog daemon ?


In my previous job, I coded such an interface. It is in the POESIA monitor
(Poesia is a content filter - see www.poesia-filter.org for details, and its
monitor is coded in Ocaml) which is opensource, under GPL license.


The relevant files are util.ml, util.mli, util_ml.c available under
http://cvs.sourceforge.net/viewcvs.py/poesia/PoesiaSoft/PoesiaMonIcap/ (to
compile the whole util.ml file, you also need the pa_trace.ml camlp4
preprocessor; but if you look for syslog only, you can copy&paste the
relevant functions and use util_ml.c).

The code was coded for ocaml 3.06; in practical terms, you'll better write
ignore (esyslogprintf ...). Using the format4 type of ocaml 3.06 for kprintf
would make it easier in ocaml 3.07. However the code does compile and run
correctly under 3.07

Regards

-- 
Basile STARYNKEVITCH -- basile dot starynkevitch at inria dot fr
Project cristal.inria.fr - phone +33 1 3963 5197 - mobile 6 8501 2359
http://cristal.inria.fr/~starynke --- all opinions are only mine 

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2003-10-08  7:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-08  3:09 Benjamin Geer
2003-10-08  3:22 ` Shawn Wagner
2003-10-08  7:58 ` Basile Starynkevitch [this message]

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=20031008075825.GA16836@bourg.inria.fr \
    --to=basile.starynkevitch@inria.fr \
    --cc=ben@socialtools.net \
    --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