Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] syslog interface?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Basile Starynkevitch <basile.starynkevitch@i...>
Subject: Re: [Caml-list] syslog interface?
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 for details, and its
monitor is coded in Ocaml) which is opensource, under GPL license.

The relevant files are, util.mli, util_ml.c available under (to
compile the whole file, you also need the 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


Basile STARYNKEVITCH -- basile dot starynkevitch at inria dot fr
Project - phone +33 1 3963 5197 - mobile 6 8501 2359 --- all opinions are only mine 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: