Sha256: 3e00eb49e6d6ebb9c6c6cde650d797f81df05886d99a704e787bf1f1fb617596

Contents?: true

Size: 413 Bytes

Versions: 118

Compression:

Stored size: 413 Bytes

Contents

class @EffectiveLogger
  @log = (message, status = 'info', details...) ->
    $.ajax
      type: 'POST',
      url: '/logs.json'
      data:
        effective_log:
          message: message
          status: status
          details: JSON.stringify(details)
    true

<% EffectiveLogging.statuses.each do |status| %>
  <%= "@#{status} = (message, details...) -> @log(message, '#{status}', details)" %>
<% end %>

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
effective_logging-4.3.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.3.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.2.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.1.3 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.1.2 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.1.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.1.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-4.0.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.5.4 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.5.3 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.5.2 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.5.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.5.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.4.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.4.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.3.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.2.3 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.2.2 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.2.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.2.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb