# Extend HornetQ Logger class to respond to standard Rails/Ruby log methods # # The following methods are already implemented by the java class # initialize # delegate # # The following methods are being replaced so that they can support blocks # trace # debug # info # warn # error # fatal # # The following methods are new # trace? # debug? # info? # warn? # error? # fatal? # # This has to be a "mix-in" because the class can return instances of itself class org.hornetq.core.logging::Logger # DRY, generate a method for each required log level ['debug', 'error', 'fatal', 'info', 'trace', 'warn'].each do |level| eval <