caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Dubuget <matthieu.dubuget@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Logging
Date: Thu, 20 Jul 2006 12:14:08 +0200	[thread overview]
Message-ID: <44BF5770.6000807@laposte.net> (raw)
In-Reply-To: <6d941f120607200220p5f09b8cby15c2f1c1669abf6b@mail.gmail.com>

Tiago Antão a écrit :
> Hi!
> 
> Are there any best practices/libraries regarding logging in CAML? My
> main use for it will be debugging (I know there are debugging
> facilities in CAML, but I am very used to using log as a debug tool -
> think Log4J for instance)...
> 
> Thanks a lot,
> Tiago
> 
>

I do not know Log4J. For the same purpose as yours, I did a small Log
library, using another one, called Tics.

Tics is a binding to QueryPerformanceCouter and al. on MS Windows. At
this moment, it is not multiplatform, but this should be done very easily.

I need Tics because each message sent to Log is timestamped and stored
in memory. The user of Log then can flush and print or display the
stored message when possible.

I did this because I have plenty of memory for those tests, and I wanted
to avoid IO perturbations of timing. I also needed precise timing,
because I'm working with hardware.

Except from those constraint, I really don't think my tools are forth using.

Salutations

Matt


  reply	other threads:[~2006-07-20 10:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-20  9:20 Logging Tiago Antão
2006-07-20 10:14 ` Matthieu Dubuget [this message]
2006-07-20 19:27 ` [Caml-list] Logging James Woodyatt
2006-07-21  8:59 ` Jean-Christophe Filliatre

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=44BF5770.6000807@laposte.net \
    --to=matthieu.dubuget@laposte.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;
as well as URLs for NNTP newsgroup(s).