Sha256: 528271d5401f81f5f8d8c30088ceaca5613f9c273ebb39c808adad38fef1bb7a

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

require "alephant/logger/version"
require "alephant/logger_factory"
require "logger"

module Alephant
  module Logger
    def logger
      Alephant::Logger.setup unless defined? @@logger

      @@logger
    end

    def self.get_logger
      @@logger
    end

    def self.setup(*drivers)
      @@logger = Alephant::LoggerFactory.create(drivers.flatten)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alephant-logger-3.1.4 lib/alephant/logger.rb
alephant-logger-3.1.2 lib/alephant/logger.rb
alephant-logger-3.1.1 lib/alephant/logger.rb
alephant-logger-3.1.0 lib/alephant/logger.rb
alephant-logger-3.0.2 lib/alephant/logger.rb
alephant-logger-3.0.1 lib/alephant/logger.rb