You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Lev Epshteyn (JIRA)" <ji...@apache.org> on 2008/09/18 19:30:44 UTC

[jira] Created: (SHINDIG-615) Enable template logging via Firebug if present

Enable template logging via Firebug if present
----------------------------------------------

                 Key: SHINDIG-615
                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
             Project: Shindig
          Issue Type: Improvement
          Components: Features (Javascript)
            Reporter: Lev Epshteyn
            Priority: Minor
         Attachments: Enable-Firebug-Logging.patch

Enables error logging by OpenSocial Templates to Firebug console if found.

Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (SHINDIG-615) Enable template logging via Firebug if present

Posted by "David Citron (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644067#action_12644067 ] 

dcitron edited comment on SHINDIG-615 at 10/30/08 11:41 AM:
-----------------------------------------------------------------

Since the Firebug console logger can accept printf-style syntax, shouldn't our os.log function really be defined as follows?

os.log = function() {
  var console = window['console'];
  if (console && console.log) {
    console.log.apply(null, arguments);
  }
};

That way it can be invoked as, e.g.:

    log("In %s with %o", functionName, someObject);


      was (Author: dcitron):
    Since the Firebug console logger can accept printf-style syntax, shouldn't our os.log function really be defined as follows?

os.log = function( {
  var console = window['console'];
  if (console && console.log) {
    console.log.apply(null, arguments);
  }
};

That way it can be invoked as, e.g.:

    log("In %s with %o", functionName, someObject);

  
> Enable template logging via Firebug if present
> ----------------------------------------------
>
>                 Key: SHINDIG-615
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Features (Javascript)
>            Reporter: Lev Epshteyn
>            Priority: Minor
>         Attachments: Enable-Firebug-Logging.patch
>
>
> Enables error logging by OpenSocial Templates to Firebug console if found.
> Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-615) Enable template logging via Firebug if present

Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-615.
----------------------------------

    Resolution: Won't Fix

please resubmit for opensocial-0.9 gadgets.log functionality.


> Enable template logging via Firebug if present
> ----------------------------------------------
>
>                 Key: SHINDIG-615
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Features (Javascript)
>            Reporter: Lev Epshteyn
>            Priority: Minor
>         Attachments: Enable-Firebug-Logging.patch
>
>
> Enables error logging by OpenSocial Templates to Firebug console if found.
> Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-615) Enable template logging via Firebug if present

Posted by "Lev Epshteyn (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lev Epshteyn updated SHINDIG-615:
---------------------------------

    Attachment: Enable-Firebug-Logging.patch

> Enable template logging via Firebug if present
> ----------------------------------------------
>
>                 Key: SHINDIG-615
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Features (Javascript)
>            Reporter: Lev Epshteyn
>            Priority: Minor
>         Attachments: Enable-Firebug-Logging.patch
>
>
> Enables error logging by OpenSocial Templates to Firebug console if found.
> Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-615) Enable template logging via Firebug if present

Posted by "Lev Epshteyn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644121#action_12644121 ] 

Lev Epshteyn commented on SHINDIG-615:
--------------------------------------

Yesm that would certainly have allowed for more powerful logging, but also
would have caused a tighter coupling to firebug's logging, at the interface
level. Printf is certainly not the most natural way to log things to a js
developer...




> Enable template logging via Firebug if present
> ----------------------------------------------
>
>                 Key: SHINDIG-615
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Features (Javascript)
>            Reporter: Lev Epshteyn
>            Priority: Minor
>         Attachments: Enable-Firebug-Logging.patch
>
>
> Enables error logging by OpenSocial Templates to Firebug console if found.
> Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-615) Enable template logging via Firebug if present

Posted by "David Citron (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644067#action_12644067 ] 

David Citron commented on SHINDIG-615:
--------------------------------------

Since the Firebug console logger can accept printf-style syntax, shouldn't our os.log function really be defined as follows?

os.log = function( {
  var console = window['console'];
  if (console && console.log) {
    console.log.apply(null, arguments);
  }
};

That way it can be invoked as, e.g.:

    log("In %s with %o", functionName, someObject);


> Enable template logging via Firebug if present
> ----------------------------------------------
>
>                 Key: SHINDIG-615
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-615
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Features (Javascript)
>            Reporter: Lev Epshteyn
>            Priority: Minor
>         Attachments: Enable-Firebug-Logging.patch
>
>
> Enables error logging by OpenSocial Templates to Firebug console if found.
> Other logging mechanisms are a TODO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.