Sha256: f9ca21049ad4c491b06e213bcf20e0bab6d4aa027780c98a08d8976e5be83d97

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

require "logger"

module Cfer
  module Auster
    module Logging
      def self.logger
        @logger
      end

      def self.logdev
        @logdev
      end

      # rubocop:disable Style/AccessorMethodName
      def self.set_logdev(logdev)
        @logdev = logdev
        @logger = Logger.new(@logdev)
      end

      set_logdev($stderr)
      @logger.level = Logger::INFO

      module Mixin
        def logger
          Cfer::Auster::Logging.logger
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
auster-0.4.0 lib/cfer/auster/logging.rb
auster-0.3.1 lib/cfer/auster/logging.rb
auster-0.3.0 lib/cfer/auster/logging.rb
auster-0.2.2 lib/cfer/auster/logging.rb