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 56ACAC83D for ; Fri, 4 May 2012 08:19:16 +0000 (UTC) Received: (qmail 65335 invoked by uid 500); 4 May 2012 08:19:16 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 65126 invoked by uid 500); 4 May 2012 08:19:14 -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 65098 invoked by uid 99); 4 May 2012 08:19:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 08:19:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 08:19:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 26CEE42FEEF for ; Fri, 4 May 2012 08:18:52 +0000 (UTC) Date: Fri, 4 May 2012 08:18:52 +0000 (UTC) From: "Chris Brody (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <551963979.26181.1336119532167.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <595072481.15361.1335913732505.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-623) Logger functionality separated from (debug) console MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268202#comment-13268202 ] Chris Brody commented on CB-623: -------------------------------- Can http://log4js.sourceforge.net/ help? > Logger functionality separated from (debug) console > --------------------------------------------------- > > Key: CB-623 > URL: https://issues.apache.org/jira/browse/CB-623 > Project: Apache Callback > Issue Type: Sub-task > Components: CordovaJS, Docs, iOS > Affects Versions: 1.6.1 > Environment: In discussion from CB-611 it is a bad idea to mix logger level functionality with HTML5 console log > Reporter: Chris Brody > Assignee: Patrick Mueller > Fix For: Master > > > After a long discussion with Patrick Mueller in CB-611 it is now clear to me that it is a bad idea to mix extra logger level functionality with {{console}} log functionality. The existing {{console}} object (or {{window.console}} which is equivalent) was already emulating the HTML API for console.log, however some changes that only work in the iOS version are adding extra functions that are not HTML compatible. So if users start writing code that uses extra functions in the {{console}} or {{window.console}} namespace that code will start throwing exceptions if ported or reused in a pure HTML(5) application. > Patrick Mueller proposed an excellent idea in CB-611 to add a new Javascript object like {{cordova.logger}} to put the functionality related to logging. The primary purpose should be for plugin authors to log things that may be important for debugging applications. So the {{console}} (or {{window.console}}) object can be remain with a fully HTML-compliant API. > Also, I think there is some agreement that having a built-in plugin called "Debug Console" (with the space in the middle) should be fixed (CB-611/CB-617). Patrick Mueller suggested that we call the plugin something like "Logger" and I really like that idea. It is positioning a lower-level logging facility, that can be called by a higher-level {{console}} API implementation. > I hereby leave this issue together with CB-611 as well as CB-617 CB-618 CB-619 open for discussion. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira