caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] syslog interface?
@ 2003-10-08  3:09 Benjamin Geer
  2003-10-08  3:22 ` Shawn Wagner
  2003-10-08  7:58 ` Basile Starynkevitch
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Geer @ 2003-10-08  3:09 UTC (permalink / raw)
  To: caml-list

Does anyone know of an ocaml interface to the Unix syslog daemon (e.g. 
via the C syslog function)?  If not, does anyone think it would be a 
useful/useless thing to have?

Ben

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] syslog interface?
  2003-10-08  3:09 [Caml-list] syslog interface? Benjamin Geer
@ 2003-10-08  3:22 ` Shawn Wagner
  2003-10-08  7:58 ` Basile Starynkevitch
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Wagner @ 2003-10-08  3:22 UTC (permalink / raw)
  To: caml-list

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 (e.g. 
> via the C syslog function)?  If not, does anyone think it would be a 
> useful/useless thing to have?

Yup. My extlib library (Not to be confused with someone else's library of
the same name) has one. http://raevnos.pennmush.org/code/ocaml.html#extlib

I think there's at least one other implementation too.

-- 
Shawn Wagner
shawnw@speakeasy.org

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] syslog interface?
  2003-10-08  3:09 [Caml-list] syslog interface? Benjamin Geer
  2003-10-08  3:22 ` Shawn Wagner
@ 2003-10-08  7:58 ` Basile Starynkevitch
  1 sibling, 0 replies; 3+ messages in thread
From: Basile Starynkevitch @ 2003-10-08  7:58 UTC (permalink / raw)
  To: Benjamin Geer, caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-08  7:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08  3:09 [Caml-list] syslog interface? Benjamin Geer
2003-10-08  3:22 ` Shawn Wagner
2003-10-08  7:58 ` Basile Starynkevitch

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).