Scott Penrose


Scott Penrose is a perl hacker with an interest in home automation. He has been playing with electronics since he was old enough to burn his fingers with a soldering iron.

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 :-)