Permalink
Browse files

making loggers available at the class level

  • Loading branch information...
1 parent e491d41 commit 59128d64e4cecce4d664df9a979220f2408a3a4e Rob Hurring committed Mar 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/class_logger.rb
View
@@ -45,6 +45,7 @@ def setup_logger(options)
as = options[:as]
self.loggers[as] = _logger
define_method(as){ self.class.loggers[as] }
+ define_singleton_method(as){ loggers[as] }
end
end
end

0 comments on commit 59128d6

Please sign in to comment.