Module: Departure::LoggerFactory
- Defined in:
- lib/departure/logger_factory.rb
Class Method Summary collapse
-
.build(verbose: true) ⇒ #say, #write
Returns the appropriate logger instance for the given configuration.
Class Method Details
.build(verbose: true) ⇒ #say, #write
Returns the appropriate logger instance for the given configuration. Use :verbose option to log to the stdout
9 10 11 12 13 14 15 |
# File 'lib/departure/logger_factory.rb', line 9 def self.build(verbose: true) if verbose Departure::Logger.new else Departure::NullLogger.new end end |