class PgExport::BuildLogger
Constants
- FORMATS
Public Class Methods
call(stream:, format:)
click to toggle source
# File lib/pg_export/build_logger.rb, line 15 def self.call(stream:, format:) Logger.new(stream).tap do |logger| logger.formatter = FORMATS.fetch(format.to_sym) end end