Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
bin
lib/vcap
pkg
spec
.gitignore
Gemfile
README.md
Rakefile
TODO.md
vcap_logging.gemspec

README.md

Overview

This gem provides a common logging library to be used for all VCAP projects. It borrows heavily in its structure from the 'logging' gem.

Goals

  • Minimal dependencies. (Ideally, none.)
  • Compatible with both ruby18 and ruby19
  • Well tested.

Core Classes

Formatter

Formatters take a log record and produce a string that can be written to a sink.

Log Sink

Sinks are the final destination for log records. A sink must be configured with a formatter. Typically they wrap other objects that perform IO (such as files and sockets).

Logger

Loggers are responsible for dispatching messages that need to be logged off to their appropriate sinks.