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-3.1.15 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.14 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.13 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.12 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.11 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.10 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.9 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.8 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.7 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.6 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.5 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.4 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.3 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.2 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.1 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.1.0 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.0.13 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.0.12 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.0.11 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb
effective_logging-3.0.10 app/assets/javascripts/effective_logging/effective_logger.js.coffee.erb