speaking-apps
speaking-apps allows you to add remote logging facilities to your application. It uses the speakingapps.com API to store and organize your messages. It works for all Ruby projects but was especially designed to be backed into your Rails app.
Caveats: You will need a speakingapps.com account.
Setup
Github Home: github.com/dynamicdudes/speaking-apps/tree/master
Gem:
gem install dynamicdudes-speaking-apps --source http://gems.github.com
$ irb(main):001:0> require 'speaking_apps'
or with Rails >= 2.1:
config.gem "dynamicdudes-speaking-apps", :lib => "speaking_apps", :source => "http://gems.github.com"
Configuration
Just before you start sending messages to the speakingapps.com API you should configure a few essential things:
SpeakingApps::Config.token = 'your_super_secret_token'
If you are on Rails you might want to define which environments should be used for remote logging:
SpeakingApps::Config.environments = [ 'staging', 'production' ]
Usage
speaking-apps gives you two methods for sending messages. A one-liner that takes optional tags:
SpeakingApps.log('hello World')
SpeakingApps.log('hello World', 'tag1', 'tag2', 'tagx')
and a &block taking version for more readability if you have longer messages:
SpeakingApps.('tag1', 'tag2') do
msg = 'He'
msg << 'llo '
msg << 'World'
end
More
-
Written by rubyphunk (rubyphunk.com)
-
For speakingapps.com
-
Supported by dynamicdudes.com
Copyright © 2008 rubyphunk, speakingapps.com. See LICENSE for details.