From: Jesse G. <je...@wi...> - 2004-08-06 21:11:51
|
Hello, I just finished a general purpose OCaml Logger module, and obtained permission from my manager to release it under the same license as OCaml itself (LGPL + exception on linking). I think it's pretty neat, but I realize that it may not be extlib material. Still, I wanted to offer it to extlib for general consumption first, before packaging it and distributing it as a third party module. You can view the docs here: http://www.wingnet.net/~jesse/ocaml/logger/doc/Logger.html Click the (.ml) link at the top of the page if you want to view the entire source. Comments, criticism, and praise are all welcome. -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net |
From: Jesse G. <je...@wi...> - 2004-08-09 04:57:16
|
Jesse Guardiani wrote: > Hello, > > I just finished a general purpose OCaml Logger module, > and obtained permission from my manager to release it > under the same license as OCaml itself (LGPL + exception > on linking). [...] Nobody expressed interest, so I made a general release: http://www.wingnet.net/~jesse/ocaml/logger/ I'm really interested (off list, please) in any comments anyone has. Thanks for reading! -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net |
From: Jesse G. <je...@wi...> - 2004-08-11 01:47:22
|
On Tuesday 10 August 2004 18:55, Sylvain LE GALL wrote: [...] > > Hello, > > I am really interested in your module... In fact, i was thinking of > doing approximatively the same things, but with a more "syslog" > design... > > If your are interested in starting a project which has the "syslog" goal > i will be very interested. > > Just to give you the way i think : > - application use simple call : > - Logger.syslog User Debug "Hello" > - Logger.syslogf User Info "Hello %s" name > - Logger.syslog (Custom "network") Critical "Hello" > ( read manpages for syslog ) > - user can gives filter and direction for the log ( for example > User.Debug=file:///var/log/mylog or User.Critical=stderr:// > or User.Info=tcp://chezmoi:1888 or User.Debug=null:// ). All this filter > should be combined. > They should be set using command line or configuration file... > For example we should provide : openlog filter_key URI. For example : > openlog "User.Debug" "file:///var/log/mylog > - it should provide facilities : > warning = syslogf User Info > critical = syslogf User Critical + exit > > - it should provides a closelog function, which can do some end task... > > This API is very simple ( 3 functions ) and has proven its strength ( it > is the syslog API ). > > What do you think of this ? I'm not particularly interested in interfacing with Syslog or duplicating it's functionality. Frankly, I don't like Syslog very much, and I don't think it works very well for small scripts and programs where you don't want to use a centralized logging system. However, if Syslog is what you need, Shawn Wagner has already written a Syslog interface module for OCaml. It's part of annexlib. You can find the documentation here: http://raevnos.pennmush.org/code/annexlib/doc/Syslog.html And the download here: http://raevnos.pennmush.org/code/annexlib/index.html -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net |