Sha256: f8ae5bcb81f1221dd63bec8cfbb4efa820ba370027109db48b132094558f80f4

Contents?: true

Size: 311 Bytes

Versions: 7

Compression:

Stored size: 311 Bytes

Contents

require 'logger'

module Bib
  module Opsworks
    module Logging
      def log
        if defined?(Chef::Log)
          Chef::Log
        else
          unless @logger
            require 'logger'
            @logger = Logger.new(STDOUT)
          end
          @logger
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
BibOpsworks-0.2.0 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.8 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.7 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.6 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.5 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.4 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.3 lib/bib/opsworks/logging.rb