Sha256: cbab01a915819d59efe9400917dacf6c42021977ecf71e1f8172d452c2288b59

Contents?: true

Size: 602 Bytes

Versions: 56

Compression:

Stored size: 602 Bytes

Contents

# encoding: utf-8

# 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

56 entries across 56 versions & 7 rubygems

Version Path
backup-ssh-4.4.5 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.19 lib/backup/logger/fog_adapter.rb
cm-backup-1.0.0 lib/backup/logger/fog_adapter.rb
backup-ssh-4.4.4 lib/backup/logger/fog_adapter.rb
backup-ssh-4.4.3 lib/backup/logger/fog_adapter.rb
backup-4.4.1 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.18 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.17 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.16 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.15 lib/backup/logger/fog_adapter.rb
backup-ssh-4.4.2 lib/backup/logger/fog_adapter.rb
backup-ssh-4.4.1 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.14 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.13 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.12 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.11 lib/backup/logger/fog_adapter.rb
backup-ssh-4.4.0 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.10 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.9 lib/backup/logger/fog_adapter.rb
backup-remote-0.0.8 lib/backup/logger/fog_adapter.rb