Sha256: 3e34740476968d6dad4327e3c49cdec37d66eaf8fa19c09e91d673d903dd57e9

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module Rancher
  module Api
    class Logger < ::Logger
      class << self
        def log
          @_logger ||= init
        end

        def init
          logger = new(STDOUT)
          logger.level = ::Logger::INFO
          logger
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.1 lib/rancher/api/logger.rb
rancher-api-beta-0.8.0.pre.beta lib/rancher/api/logger.rb