lib/logging/appenders/static_appender.rb in logging-0.4.0 vs lib/logging/appenders/static_appender.rb in logging-0.5.0

- old
+ new

@@ -1,35 +1,32 @@ -# $Id: static_appender.rb 26 2007-01-31 23:19:40Z tim_pease $ +# $Id: static_appender.rb 37 2007-10-26 19:12:44Z tim_pease $ require 'logging/appenders/console' module Logging class Appender @appenders = Hash.new class << self - # # call-seq: # Appender[name] # # Returns the appender instance stroed in the Appender hash under the # key _name_, or +nil+ if no appender has been created using that name. # def []( name ) @appenders[name] end - # # call-seq: # Appender[name] = appender # # Stores the given _appender_ instance in the Appender hash under the # key _name_. # def []=( name, val ) @appenders[name] = val end - # # call-seq: # Appender.stdout # # Returns an instance of the Stdout Appender. Unless the user explicitly # creates a new Stdout Appender, the instance returned by this method @@ -37,10 +34,9 @@ # # Appender.stdout.object_id == Appender.stdout.object_id #=> true # def stdout( ) self['stdout'] || ::Logging::Appenders::Stdout.new end - # # call-seq: # Appender.stderr # # Returns an instance of the Stderr Appender. Unless the user explicitly # creates a new Stderr Appender, the instance returned by this method