incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse <purplecabb...@gmail.com>
Subject Re: [jira] [Commented] (CB-802) log: attaches console.log statements to STDOUT
Date Thu, 17 May 2012 19:35:56 GMT
With not much work, I was able to add logging via socket.io to a WP7
phonegap app.
Apps running in the emulator can easily open 127.0.0.1 and call socket.send.
When running on the device, the ip of the server must be known to the app
before it can open the connection, but again, I was able to make it work by
adding the ip address in my js code running on the device, and ensuring
that both were on the same network.

My trepidation stems from the fact that while this is pretty easy to setup
in any particular case, it is potentially much more difficult to do
generically.    IMHO this is a case where we should provide a HowTo guide
instead of trying to generalize it into something that can work everywhere,
and is pre-baked into every app whether it is used or not.

I am perfectly willing to supply the logging code ( and docs ) that
developers can add to their application to enable the feature, just
hesitant to force it's use.



On Thu, May 17, 2012 at 8:44 AM, Filip Maj (JIRA) <jira@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/CB-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277901#comment-13277901]
>
> Filip Maj commented on CB-802:
> ------------------------------
>
> BlackBerry will need to do the same thing, so a node server makes sense...
>
> > log: attaches console.log statements to STDOUT
> > ----------------------------------------------
> >
> >                 Key: CB-802
> >                 URL: https://issues.apache.org/jira/browse/CB-802
> >             Project: Apache Cordova
> >          Issue Type: Improvement
> >          Components: WP7
> >    Affects Versions: 1.7.0
> >         Environment: CLI
> >            Reporter: Jesse MacFadyen
> >            Assignee: Jesse MacFadyen
> >            Priority: Minor
> >             Fix For: 1.9.0
> >
> >   Original Estimate: 3h 20m
> >  Remaining Estimate: 3h 20m
> >
> > Add log support for brogrammers who are too good for Visual Studio.
> > Requires adding a socket server in the command line app, and writing to
> the socket from the application for all trace statements.
>
> --
> 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
>
>
>


-- 
@purplecabbage
risingj.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message