# -*- encoding: utf-8 -*- # stub: slf4r 0.2.0 ruby lib Gem::Specification.new do |s| s.name = "slf4r".freeze s.version = "0.2.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["mkristian".freeze] s.date = "2009-05-22" s.description = "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.".freeze s.email = ["m.kristian@web.de".freeze] s.extra_rdoc_files = ["History.txt".freeze, "Manifest.txt".freeze, "README.txt".freeze] s.files = ["History.txt".freeze, "Manifest.txt".freeze, "README.txt".freeze, "Rakefile".freeze, "lib/log4r_adapter.rb".freeze, "lib/logging_adapter.rb".freeze, "lib/ruby_logger_adapter.rb".freeze, "lib/slf4r.rb".freeze, "lib/slf4r/abstract_logger_facade.rb".freeze, "lib/slf4r/log4r_logger.rb".freeze, "lib/slf4r/logger.rb".freeze, "lib/slf4r/logging_logger.rb".freeze, "lib/slf4r/noop_logger.rb".freeze, "lib/slf4r/ruby_logger.rb".freeze, "lib/slf4r/version.rb".freeze, "lib/slf4r/wrapped_logger.rb".freeze, "load.rb".freeze, "spec/log4r_logger_spec.rb".freeze, "spec/logger_helper.rb".freeze, "spec/logging_logger_spec.rb".freeze, "spec/ruby_logger_spec.rb".freeze, "spec/spec.opts".freeze, "spec/spec_helper.rb".freeze, "spec/wrapper_logger_spec.rb".freeze] s.homepage = "http://slf4r.rubyforge.com/".freeze s.rdoc_options = ["--main".freeze, "README.txt".freeze] s.rubygems_version = "3.5.10".freeze s.summary = "Slf4r provides a uniform interface for instantiating und using of a logger".freeze s.specification_version = 2 s.add_development_dependency(%q.freeze, [">= 1.8.3".freeze]) end