Sha256: 16def7576d2e676f2f01e09a0394271a159c8f2adc2a2573790d634e93ddfca9

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true
require 'logger'
require 'singleton'

module Shatter
  module Util
    class Logger < ::Logger
      include Singleton
      def initialize
        super(STDOUT, datetime_format: '%Y-%m-%d %H:%M:%S')
      end
    end

    def self.zookeeper_response_key(uuid)
      raise 'Cant produce key without uuid' if uuid.nil?
      "/shatter::response_data_locations/#{uuid}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shatter-rb-0.0.2 lib/shatter/util.rb
shatter-rb-0.0.1 lib/shatter/util.rb