[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] Logs



Hello,  

The topic was mentioned again on the mirage call. I also need such a library in 
many different contexts and I keep on rewriting the bits of a basic logger in 
too many of my projects.  

I do have a Log module in bos [1] which represents the very basics I'd like, 
but I would like to fork it and expand it a bit to make it more useful in 
different contexts and independent of bos â as it doesn't depend on it and I'd 
like for example to be able to use the same interface in js to log to the 
browser console (see e.g. [2]). Here's roughly what I have in mind:

* Format based.
* Simple fixed levels [3].
* Interaction with result type [4].
* Notion of logging source and per source log level control. Sources should be 
listable (for ui purposes).
* Decoupling of log generation (logging function calls) and reporting (log 
output/rendering).  
* A few reporting profiles as optional subpackages, for a cli, for js, etc.

This will happen soon or later on my side, so if you think you could be served 
by that and have ideas about it, speak.

Best,  

Daniel

[1] http://erratique.ch/software/bos/doc/Bos.Log.html
[2] https://github.com/dbuenzli/remat/blob/master/src-www/br.mli#L686-L746
[3] http://erratique.ch/software/bos/doc/Bos.Log.html#TYPElevel
[4] http://erratique.ch/software/bos/doc/Bos.Log.html#1_LogerrorRresults



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.