Sha256: 76832299226748f856ca0e161896f96e8985cba1bef1c7a6ab6c7dcf09790dcf

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 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

4 entries across 4 versions & 1 rubygems

Version Path
BibOpsworks-0.1.2 lib/bib/opsworks/logging.rb
BibOpsworks-0.1.1 lib/bib/opsworks/logging.rb
BibOpsworks-0.1 lib/bib/opsworks/logging.rb
BibOpsworks-0.0.9.3 lib/bib/opsworks/logging.rb