¶ ↑
SilverPlatter::Log¶ ↑
Indexing- Author
-
Stefan Rusterholz <stefan.rusterholz+silverplatter-log at gmail.com>
- Version
-
0.2.0
- Website
- Project
- Git Repository
- Bugtracker
- Feature Requests
- License
-
Ruby License (see LICENSE.txt)
¶ ↑
SummarySilverPlatter::Log is an easy to use library for Logging.
¶ ↑
DescriptionFIXME
¶ ↑
Installing¶ ↑
Via RubyGemsYou need for the installation:
-
rubygems >= 1.2.0
You need for some of the rake tasks:
-
bacon
-
flexmock
-
git (executable)
-
rcov
-
rdiscount (or markdown)
-
rdoc
To install, do:
gem install silverplatter-log
Note: you might have to use ‘sudo gem install silverplatter-log’
¶ ↑
From GithubYou need for the installation:
-
rubygems >= 1.2.0 (if you want to use any gem tasks)
You need for some of the rake tasks:
-
bacon
-
flexmock
-
git (executable)
-
rcov
-
rdiscount (or markdown)
-
rdoc
To install, do:
curl -L -o silverplatter-log.tgz github.com/apeiros/silverplatter-log/tarball/master tar -xfz silverplatter-log.tgz cd apeiros-silverplatter-log-<hexid>/trunk rake gem:install
Note: you might have to use ‘sudo rake gem:install’
¶ ↑
Examplesrequire 'silverplatter/log' include SilverPlatter Log.info 'this is an info' $stdout = Log.collect(Log.to_console, :info) $stderr = Log.collect($stdout, :warn) warn "Kernel#warn" puts "Kernel#puts" include Log::Comfort info "this is an info via Log::Comfort#info"
See in the examples dir for more code examples.
¶ ↑
DesignFIXME