Results 1 to 2 of 2

Thread: Logging in ExtJS

  1. #1

    Question Logging in ExtJS

    Hi,

    We are finding that a lot of our bugs are intermitant, difficult to replicate, and even harder to track down. This has us thinking that some means of logging the state of our application at various points would be a huge help when something goes wrong.

    We tried using window.console.log(), and tracked what came out using Firefox's Firebug console, which worked a treat. However, it was causing problems in Internet Explorer (I don't think it supports console.log()?) so the logging was eventually removed from our codebase.

    Our question is... is there a reliable way to spit out log messages in ExtJS that will work cross-browser? We notice people mentioning Ext.log() in some forum posts, but this doesn't seem to exist anymore:
    http://www.sencha.com/forum/showthre...log-best-usage

    Are there any alternatives? How do you guys track what goes wrong during tricky hard-to-replicate bugs?

    Thanks,
    CalmDownMonkey

  2. #2
    Sencha User lukefowell89's Avatar
    Join Date
    Nov 2010
    Location
    Dorset, UK
    Posts
    262

    Default

    We have made a debug console which is made using an extending Window, it logs all events that are fired, any errors that are picked up by using try/catch, shows all stores, all components and something we have intergrated ourselves which is a notifcationCenter, we made this so we can run methods in other classses etc which have no link.

    I am sure you can do something like this which can log items and display data in a property grid/grid
    My Web Design, Development & Internet Marketing Blog: http://www.aztec-online.com
    Read My Review of the latest Ext JS Framework:Ext JS 4 Review

Similar Threads

  1. Replies: 0
    Last Post: 8 Apr 2010, 10:13 PM
  2. PHP Logging
    By michaelc in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 May 2009, 1:55 PM
  3. Logging in Ext and PHP
    By michaelc in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 12 Feb 2009, 3:48 PM
  4. JavaScript logging
    By deanoj in forum Community Discussion
    Replies: 2
    Last Post: 28 Jul 2008, 1:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •