Udo Schnurpfeil created TOBAGO-1373:
---------------------------------------

             Summary: Better JavaScript logging: using browser console and fill 
browser gaps.
                 Key: TOBAGO-1373
                 URL: https://issues.apache.org/jira/browse/TOBAGO-1373
             Project: MyFaces Tobago
          Issue Type: New Feature
          Components: Themes
            Reporter: Udo Schnurpfeil
            Assignee: Udo Schnurpfeil


Currently Tobago uses its own wrapper for logging in JavaScript.
This should be replaced with the browsers console object like:
  LOG.info() -> console.info()
Old browsers are not supporting some or all of it functionality. Here you can 
see what is possible in Firefix: 
https://developer.mozilla.org/en-US/docs/Web/API/console
Chrome seems to support also these functions.

For all undefined functions we should define a replacement, so the JavaScript 
code can use them all.

One important advantage of not wrapping the calls is, that you can see the 
Code-Pointer in the Debugger-Console in the browser and jump into the code (if 
the browser supports that).

Don't forget: all debugging code in Tobago will be markted with this suffix
    // @DEV_ONLY
which will be removed in the compressed version, so it will not influence the 
production performance.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to