Module: Departure::LoggerFactory
- Defined in:
- lib/departure/logger_factory.rb
Class Method Summary collapse
-
.build(sanitizers: [], verbose: true) ⇒ #say, #write
Returns the appropriate logger instance for the given configuration.
Class Method Details
.build(sanitizers: [], verbose: true) ⇒ #say, #write
Returns the appropriate logger instance for the given configuration. Use :verbose option to log to the stdout
8 9 10 11 12 13 14 |
# 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 |