Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making loggers available at the class level

  • Loading branch information...
commit 59128d64e4cecce4d664df9a979220f2408a3a4e 1 parent e491d41
Rob Hurring authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/class_logger.rb
View
1  lib/class_logger.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.