Created
September 8, 2011 19:02
-
-
Save bryanl/1204341 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%w(debug? info? warn? error? fatal?).map(&:to_sym).each do |level| | |
define_method level do | |
@loggers.find_all{|l| l.level}.map{|l| l.send level}.any? | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment