This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Christopher Brown (author)
Mon Dec 14 11:52:54 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 11 21:08:08 -0700 2009 | |
| |
LICENSE | Wed Mar 11 13:25:45 -0700 2009 | |
| |
NOTICE | Wed Mar 11 13:25:45 -0700 2009 | |
| |
README.rdoc | Mon May 11 21:08:08 -0700 2009 | |
| |
Rakefile | Thu May 14 09:37:39 -0700 2009 | |
| |
VERSION.yml | Tue May 12 00:20:45 -0700 2009 | |
| |
features/ | Fri Dec 11 15:09:59 -0800 2009 | |
| |
lib/ | Mon Dec 14 11:51:00 -0800 2009 | |
| |
mixlib-log.gemspec | Tue May 12 00:20:45 -0700 2009 | |
| |
spec/ | Mon Dec 14 11:52:54 -0800 2009 |
README.rdoc
Mixlib::Log
Mixlib::Log provides a mixin for enabling a class based logger object, a-la Merb, Chef, and Nanite. To use it:
require 'mixlib/log'
class Log
extend Mixlib::Log
end
You can then do:
Log.debug("foo")
Log.info("bar")
Log.warn("baz")
Log.error("baz")
Log.fatal("wewt")
By default, Mixlib::Logger logs to STDOUT. To alter this, you should call Log.init, passing any arguments to the standard Ruby Logger. For example:
Log.init("/tmp/logfile") # log to /tmp/logfile
Log.init("/tmp/logfile", 7) # log to /tmp/logfile, rotate every day
Enjoy!







