Categories: None [Edit]
javascript_safe_logger
== Rails 3.1 and up javascript asset for Paul Irish console.log wrapper
This gem makes a javascript log method available as a Rails 3.1 asset
* see http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog
* see https://github.com/paulirish/html5-boilerplate
== Usage
in your javascript
log('inside coolFunc', this, arguments);
// or simple
log('hello world!');
and in coffeescript
log 'inside coolFunc', this, arguments
# or simple
log 'hello world!'
== Install
1. Update the Gemfile in your rails project, add the following line
gem 'javascript_safe_logger'
2. Update the /app/assets/javascript/application.js file
A. Manually update the file, add this before other requires
//= require safe_logger
B. Or use the generator to update the application.js file
rails generate javascript_safe_logger
== License
Paul Irish released the javascript code with the {The Unlicense}[http://unlicense.org/] (aka: public domain),
so this gem is also released with the same license.
== Ruby Gems
* https://rubygems.org/gems/javascript_safe_logger
Total
Ranking: 45,266 of 186,974
Downloads: 24,794
Daily
Ranking: 57,386 of 186,960
Downloads: 9
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
26,194 | 52,006 | javascript_util_asset_pack |
Depends on
Rank | Downloads | Name |
---|---|---|
43 | 665,544,735 | rails |
Owners
# | Gravatar | Handle |
---|---|---|
1 | jessehouse |