From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A4012BB83 for ; Thu, 20 Jul 2006 12:12:27 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k6KACRDr014916 for ; Thu, 20 Jul 2006 12:12:27 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA00277 for ; Thu, 20 Jul 2006 12:12:26 +0200 (MET DST) Received: from smtp-msa-out02.orange.fr (smtp2.orange.fr [193.252.22.29]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k6KACQZd014912 for ; Thu, 20 Jul 2006 12:12:26 +0200 Received: from drakar.stremy.local (ADijon-258-1-48-14.w90-6.abo.wanadoo.fr [90.6.175.14]) by mwinf0208.orange.fr (SMTP Server) with ESMTP id B7D771C002CB for ; Thu, 20 Jul 2006 12:12:25 +0200 (CEST) X-ME-UUID: 20060720101225753.B7D771C002CB@mwinf0208.orange.fr Received: from [192.168.0.25] (helo=[192.168.0.25]) by drakar.stremy.local with esmtp (Exim 3.36 #1 (Debian)) id 1G3VWm-0001sW-00 for ; Thu, 20 Jul 2006 12:13:08 +0200 Message-ID: <44BF5770.6000807@laposte.net> Date: Thu, 20 Jul 2006 12:14:08 +0200 From: Matthieu Dubuget Reply-To: matthieu.dubuget@laposte.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Logging References: <6d941f120607200220p5f09b8cby15c2f1c1669abf6b@mail.gmail.com> In-Reply-To: <6d941f120607200220p5f09b8cby15c2f1c1669abf6b@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-j-chkmail-Score: MSGID : 44BF570A.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44BF570B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44BF570A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 debugging:01 debugging:01 caml-list:01 constraint:01 caml:02 caml:02 binding:02 flush:03 library:03 debug:04 ecrit:04 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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