--- !ruby/object:Gem::Specification name: slf4r version: !ruby/object:Gem::Version version: 0.2.0 platform: ruby authors: - mkristian autorequire: bindir: bin cert_chain: [] date: 2009-05-22 00:00:00 +05:30 default_executable: dependencies: - !ruby/object:Gem::Dependency name: hoe type: :development version_requirement: version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: 1.8.3 version: 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. email: - m.kristian@web.de executables: [] extensions: [] extra_rdoc_files: - History.txt - Manifest.txt - README.txt files: - History.txt - Manifest.txt - README.txt - Rakefile - lib/log4r_adapter.rb - lib/logging_adapter.rb - lib/ruby_logger_adapter.rb - lib/slf4r.rb - lib/slf4r/abstract_logger_facade.rb - lib/slf4r/log4r_logger.rb - lib/slf4r/logger.rb - lib/slf4r/logging_logger.rb - lib/slf4r/noop_logger.rb - lib/slf4r/ruby_logger.rb - lib/slf4r/version.rb - lib/slf4r/wrapped_logger.rb - load.rb - spec/log4r_logger_spec.rb - spec/logger_helper.rb - spec/logging_logger_spec.rb - spec/ruby_logger_spec.rb - spec/spec.opts - spec/spec_helper.rb - spec/wrapper_logger_spec.rb has_rdoc: true homepage: http://slf4r.rubyforge.com/ post_install_message: rdoc_options: - --main - README.txt require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: "0" version: required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: "0" version: requirements: [] rubyforge_project: slf4r rubygems_version: 1.3.1 signing_key: specification_version: 2 summary: Slf4r provides a uniform interface for instantiating und using of a logger test_files: []