Scott Penrose



Difference between revision 1 and current revision

No diff available.

ExtJS is missing a logging library. What I want is something similar to that of Log4Perl/Log4J.

In the mean time, adding console.log works well, but if you leave it in, you will break your pages for those without Firebug installed (See Internet Explorer).

Here is a quick fix taken from:

  if (!__global.console || (__global.console && !__global.console.log)) {
    __global.console = {
      log: (__global.opera && __global.opera.postError)
        ? __global.opera.postError
        : function(){ }

What would a Log4Ext do

All you have to do is ask the right question, and then search for the answer:

It is already written and does what I want :-)