tuankhac / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Add logger.log support to Javascript Console #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What enhancement would you like to see? Is this a new feature, a
translation, or something else?

logger.log(..) output should be redirected to the output window or a separate 
log-window.

Does the enhancement relate to an existing add-on or to a new add-on? If an 
existing add-on, which one?

Yes, the Javascript Console.

Have you done any work to implement the enhancement? 

Could be as simple as redirecting logger.log to a print() call. This can 
currently be done (as a workaround) like this:

var _$orglogger = logger;
logger = {
  log: function(text) {
    print(text);
    _$orglogger.log(text);
  }
}

logger.log("It works.");

Original issue reported on code.google.com by Florian....@gmail.com on 9 Jun 2011 at 2:21

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r547.

Original comment by Florian....@gmail.com on 11 Jul 2011 at 7:11