module Departure::LoggerFactory
Public Class Methods
build(sanitizers: [], verbose: true)
click to toggle source
Returns the appropriate logger instance for the given configuration. Use :verbose option to log to the stdout
@param verbose [Boolean] @return [#say, write]
# File lib/departure/logger_factory.rb, line 8 def self.build(sanitizers: [], verbose: true) if verbose Departure::Logger.new(sanitizers) else Departure::NullLogger.new end end