lib/logging.rb in logging-1.6.1 vs lib/logging.rb in logging-1.6.2

- old
+ new

@@ -190,12 +190,12 @@ # in the namespace will use the "consolidated" namespace logger instead # of creating a new logger for each class or module. # # If the "root" logger name is passed to this method then all loggers # will consolidate to the root logger. In other words, only the root - # logger will be created, and it will be used by all classes and moduels - # in the applicaiton. + # logger will be created, and it will be used by all classes and modules + # in the application. # # ==== Example # # Logging.consolidate( 'Foo' ) # @@ -361,11 +361,11 @@ def version @version ||= File.read(path('version.txt')).strip end # Returns the library path for the module. If any arguments are given, - # they will be joined to the end of the libray path using + # they will be joined to the end of the library path using # <tt>File.join</tt>. # def libpath( *args, &block ) rv = args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten) if block @@ -417,11 +417,11 @@ # # The lines can be deciphered as follows: # # 1) name - the name of the logger # - # 2) level - the logger level; if it is preceeded by an + # 2) level - the logger level; if it is preceded by an # asterisk then the level was explicitly set for that # logger (as opposed to being inherited from the parent # logger) # # 3) additivity - a "+A" shows the logger is additive, and log events @@ -468,10 +468,10 @@ nil end # :stopdoc: - # Convert the given level into a connaconical form - a lowercase string. + # Convert the given level into a canonical form - a lowercase string. def levelify( level ) case level when String; level.downcase when Symbol; level.to_s.downcase else raise ArgumentError, "levels must be a String or Symbol" end