Sha256: ae9b2a23c82faae3d271a31ec7d7b011825f8b5eff0ead8452daed44724fd47a

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

/*
  Class: ConsoleAppender

  Simple console appender.
*/
JLog.ConsoleAppender = function() {
  this.name = 'ConsoleAppender';

  /*
    Method: append

    Attempts to append message into console.
  */
  if (window.console && window.console.log)
    this.append = function(loggingEvent) {
      window.console.log(this.getLayout().format(loggingEvent));
    };
};

JLog.ConsoleAppender.prototype = new JLog.Appender();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jlog-rails-0.2.2 vendor/assets/javascripts/appenders/console.js
jlog-rails-0.2.1 vendor/assets/javascripts/appenders/console.js
jlog-rails-0.2.0 vendor/assets/javascripts/appenders/console.js