RubyGems Navigation menu

slf4r 0.1.0

the main idea is from www.slf4j.org which is to provide a uniform interface for instantiating und using of a logger. but the actual logging is done by some third party logging framework. one idea is to have a logger per class or object (see ). in ruby you would have something like @logger = Slf4r::LoggerFacade.new(self.class) or the convinience module include Slf4r::Logger if the underlying logging framework allows it (like logging or log4r) then you get a logger for each namespace of your class and create a hierachy of loggers. with this you can control the log level for each logger and/or namespace. for example you have a framework A with namespace 'A' then you can set the log level for the logger with name 'A' to debug and get all the debug from the framework, etc. in case you have a framework B which uses log4r internally you can use the 'log4r_adapter' to delegate the logger creation from log4r to slf4r. in this way you have only one place where logging gets configured and controlled.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.4.2 - March 21, 2011 (11 KB)
  2. 0.4.1 - March 01, 2011 (11 KB)
  3. 0.4.0 - December 11, 2010 (11 KB)
  4. 0.3.3 - August 01, 2010 (9 KB)
  5. 0.3.2 - June 28, 2010 (6,5 KB)
  6. 0.1.0 - February 07, 2009* (7,5 KB)
Zeige alle Versionen (10 total)

Development Abhängigkeiten (1):

hoe >= 1.8.2

Besitzer:

Autoren:

  • mkristian

SHA 256-Prüfsumme:

bf2142c920671708dbc3555fe8cadbf0976e05c51c5e06581691f2015fc1182e

Downloads insgesamt 39.427

Für diese Version 3.341

Lizenzen:

k.A.

Erforderliche Ruby-Version: None

Links: