method
logger_outputs_to?
v4.2.9 -
Show 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