Sha256: 66bde5f819cf72159b1cb7857c380b2113d2afce4b91d371838af5d151763054

Contents?: true

Size: 581 Bytes

Versions: 13

Compression:

Stored size: 581 Bytes

Contents

# require only the logger
require "formatador"
require "fog/core/logger"

module Backup
  class Logger
    module FogAdapter
      class << self
        # Logged as :info so these won't generate warnings.
        # This is mostly to keep STDOUT clean and to provide
        # supplemental messages for our own warnings.
        # These will generally occur during retry attempts.
        def write(message)
          Logger.info message.chomp
        end

        def tty?
          false
        end
      end
    end
  end
end

Fog::Logger[:warning] = Backup::Logger::FogAdapter

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
backup-5.0.0.beta.3 lib/backup/logger/fog_adapter.rb
backedup-5.0.0.beta.5 lib/backup/logger/fog_adapter.rb
backedup-5.0.0.beta.4 lib/backup/logger/fog_adapter.rb
backedup-5.0.0.beta.3 lib/backup/logger/fog_adapter.rb
ext_backup-5.0.0.beta.2.1 lib/backup/logger/fog_adapter.rb
ext_backup-5.0.0.beta.2.ext.0.1.2 lib/backup/logger/fog_adapter.rb
ext_backup-5.0.0.beta.2.ext.0.1.1 lib/backup/logger/fog_adapter.rb
ext_backup-5.0.0.beta.2.ext.0.1.0 lib/backup/logger/fog_adapter.rb
backup-5.0.0.beta.2 lib/backup/logger/fog_adapter.rb
backup-5.0.0.beta.1 lib/backup/logger/fog_adapter.rb
backup-bouchard-4.4.4 lib/backup/logger/fog_adapter.rb
backup-bouchard-4.4.2 lib/backup/logger/fog_adapter.rb
backup-bouchard-4.4.1 lib/backup/logger/fog_adapter.rb