Sha256: a5d4b5656c599b6fba8972594330f9f8a5e9000b9636d02c819e9f4ce6bc894e
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
# frozen_string_literal: true PgExport::Container.boot :config do init do require 'logger' require 'pg_export/lib/pg_export/types' require 'pg_export/configuration' end start do config = PgExport::Configuration.build(ENV) formatters = { plain: ->(_, _, _, message) { "#{message}\n" }, muted: ->(*) {}, timestamped: lambda do |severity, datetime, progname, message| "#{datetime} #{Process.pid} TID-#{Thread.current.object_id.to_s(36)}#{progname} #{severity}: #{message}\n" end } register(:logger, memoize: true) do Logger.new($stdout, formatter: formatters.fetch(config.logger_format)) end register(:config, memoize: true) { config } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_export-1.0.0.rc5 | lib/pg_export/system/boot/config.rb |