Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73075C18F for ; Thu, 3 May 2012 19:01:09 +0000 (UTC) Received: (qmail 46385 invoked by uid 500); 3 May 2012 19:01:09 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 46339 invoked by uid 500); 3 May 2012 19:01:09 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 46331 invoked by uid 99); 3 May 2012 19:01:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 19:01:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of purplecabbage@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 19:01:04 +0000 Received: by wgbdr1 with SMTP id dr1so1764005wgb.0 for ; Thu, 03 May 2012 12:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type; bh=nCEpyssx1JpNJILAx01p+viJOcikoWP1kdJMo9DQkvU=; b=YM2PdnU5R9XFXGK1VDm739+80y5EnOUTjhrylXyno5l81zYl3W3aou8XE8IzMAZOu5 5Z8YSk8waMv6q9sg1hPnj/WMHh/k+Lb2MtRlShJjsfQ1JJRYk/lOMFg+TTcOmpf0m9vY pnW4u9m7C4nP7kT/uhfYfYLes1KGK9IRqLS52kGggI3iyn+Cy39g7xqj+L8DN89ksmCj XpvLU3JE9FpcZHlPriFU9D7o3I1EoG2LzbTP/OVp0QV5i94K/B7p7SNwjdiB78O2PZDC 5dzL6ugbC2h5Kdflgu/CeXsRMOlBuzfYrGIT2uqggS8K+41GKjDrCyb/i4gVcnzDLVeA gbbw== Received: by 10.180.80.104 with SMTP id q8mr5918019wix.14.1336071643467; Thu, 03 May 2012 12:00:43 -0700 (PDT) References: From: Jesse MacFadyen In-Reply-To: Mime-Version: 1.0 (1.0) Date: Thu, 3 May 2012 12:02:45 -0700 Message-ID: <-2541470670415484291@unknownmsgid> Subject: Re: console / logging issues To: "callback-dev@incubator.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org console.assert(this.isCool, "not cool" ); To clarify, I think it's cool! Cheers, Jesse Sent from my iPhone5 On 2012-05-03, at 11:52 AM, Michael Brooks wrote: > Nice, thanks for kick starting this one Patrick! > > On Thu, May 3, 2012 at 2:29 PM, Shazron wrote: > >> Thanks for taking this on Patrick! >> >> On Thu, May 3, 2012 at 9:12 AM, Filip Maj wrote: >>> Cool, thanks for organizing this sensibly Pat! >>> >>> On 5/3/12 9:49 AM, "Patrick Mueller" wrote: >>> >>>> I'm going to start in on the console/logger issues: >>>> >>>> console object improvements >>>> https://issues.apache.org/jira/browse/CB-348 >>>> >>>> Logging levels >>>> https://issues.apache.org/jira/browse/CB-611 >>>> >>>> Debug Console registers itself with an error-prone name >>>> https://issues.apache.org/jira/browse/CB-617 >>>> >>>> Support DebugConsole plugin for all platforms >>>> https://issues.apache.org/jira/browse/CB-618 >>>> >>>> Document how to use logging levels from Debug Console >>>> https://issues.apache.org/jira/browse/CB-619 >>>> >>>> Logger functionality separated from (debug) console >>>> https://issues.apache.org/jira/browse/CB-623 >>>> >>>> Here's the basic idea: >>>> >>>> - create a new module/object exposed on cordova called logger >>>> - like log4j but smaller/simpler/sensible >>>> - default implementation in common/logger.js that writes all output via >>>> console.log() >>>> - if a platform has something better to implement to, override logger.js >>>> in >>>> your platform subdirectory >>>> - iOS has something better to implement to, so will use that as the first >>>> 'native logger' implementation, and so the initial take at a Logger >> plugin >>>> interface (that other platforms could implement to). >>>> - intended for use by plugin developers today, maybe we can expose it to >>>> app developers later >>>> >>>> Then there's console. Not every platform exposes a "global" console >>>> object. iOS and at least one of the blackberries. We should provide an >>>> implementation which matches the de facto standard Firebug Console API, >>>> and >>>> delegates to the logger if it's implemented. >>>> >>>> We'd never run into infinite loops with this. Never. :-) >>>> >>>> I'll add some logic to the loggers/consoles so that we can ensure that >>>> after they've been initialized, that both are not implemented as calling >>>> into the other. >>>> >>>> -- >>>> Patrick Mueller >>>> http://muellerware.org >>> >>