method

logger_outputs_to?

rails latest stable - Class: ActiveSupport::Logger
logger_outputs_to?(logger, *sources)
public

Returns true if the logger destination matches one of the sources

logger = Logger.new(STDOUT)
ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
# => true