From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82262 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: log reporting? Date: Thu, 2 May 2013 19:00:51 +0200 Message-ID: References: <0623C68C-2855-484A-BADC-DDD188DFB895@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367514101 2269 80.91.229.3 (2 May 2013 17:01:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 17:01:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 02 19:01:41 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXwt1-0006wg-F2 for gctc-ntg-context-518@m.gmane.org; Thu, 02 May 2013 19:01:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3F0C101EA; Thu, 2 May 2013 19:01:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I3Go5Q6oQo-T; Thu, 2 May 2013 19:01:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0E1E2101E5; Thu, 2 May 2013 19:01:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C3E0101E5 for ; Thu, 2 May 2013 19:01:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id v7ZrGsbqNVdb for ; Thu, 2 May 2013 19:01:33 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 3062D101E4 for ; Thu, 2 May 2013 19:01:23 +0200 (CEST) Original-Received: from mail-ea0-x22b.google.com (mail-ea0-x22b.google.com [IPv6:2a00:1450:4013:c01::22b]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r42H1M7L013527 for ; Thu, 2 May 2013 19:01:22 +0200 Original-Received: by mail-ea0-f171.google.com with SMTP id b10so392017eae.16 for ; Thu, 02 May 2013 10:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=m6utHWLRWFNAqciN/nl8CT1mc9fNq+FIUHN2gXZFWug=; b=yXiQBgJHaaCeQLM0LquwrRsNPVXiicLBhyQiTc8FPl1PYnCPeKP+rgpqVpHiSEcoiB HviYGzDtJMNCAY8nKbxb/HIE8jYg7hwPGhSDD1FKdFqJ1Gl7+AMLZ8lV60uE+MzDPToU xRMhn5MM0GtznYIslXtjpM+qvYBiOjOv6CFkXjOcuqcxXVl649F/GWnC3eEJ/0EqjEJh 0W51hPpKXQtvi4pEPmMRwGg0srn01WMOkVGH8vt8ZDVEUYDcRCOztXXl2nfLnb12fSVD DPsjbtxFsHSKrj3i7jeGuo5VRd9ebMVgWEeF//cSXGMpWkArbtsFt/EOtZT//Dheo5PC 7UhA== X-Received: by 10.15.31.197 with SMTP id y45mr21626014eeu.18.1367514082074; Thu, 02 May 2013 10:01:22 -0700 (PDT) Original-Received: by 10.15.110.3 with HTTP; Thu, 2 May 2013 10:00:51 -0700 (PDT) In-Reply-To: <0623C68C-2855-484A-BADC-DDD188DFB895@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Jv51mIu - 88b81352f186 - 20130502 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82262 Archived-At: Hi Hans, > How do I enable the output of for example: > report_typescripts("unknown library %a or %a",name_one,name_two) `logs.reporter("fonts","typescripts")` returns a function for writing to the log. Calling that function produces this sort of output: fonts > typescripts > bla bla bla Sometimes calls to a reporter are wrapped in a 'only if tracker x is active'. This is not the case with this reporter, though. If this reporter is not printing anything, it's because the error condition is not arising, not because you didn't activate some tracker. For completeness: the wiki has more on trackers, including a list of them. http://wiki.contextgarden.net/Trackers And this is what a reporter wrapped in a tracker looks like: -- defining the tracker local trace_casing = false trackers.register("typesetters.casing", function(v) trace_casing = v end) -- checking whether the tracker is active if trace_casing then report_casing("case trigger %a, instance %a, result %a",attr%100,div(attr,100),ok) end Hope this helps, Sietse ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________