Sha256: f294ea19e2c6cebe883162159b89e6652a82a3b552325d9d6521db9c13ab7b8a

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

module Twitch
  module Bot
    class Logger
      def self.output=(file)
        @logger = ::Logger.new(file)
      end

      def self.level=(level)
        @logger.level = level
      end

      def self.debug(entry)
        logger.debug entry
      end

      def self.logger
        @logger ||= ::Logger.new(STDOUT)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
twitch-bot-4.1.1 lib/twitch/bot/logger.rb
twitch-bot-4.1.0 lib/twitch/bot/logger.rb
twitch-bot-4.0.1 lib/twitch/bot/logger.rb
twitch-bot-4.0.0 lib/twitch/bot/logger.rb
twitch-bot-3.2.1 lib/twitch/bot/logger.rb
twitch-bot-3.2.0 lib/twitch/bot/logger.rb
twitch-bot-3.1.0 lib/twitch/bot/logger.rb
twitch-bot-2.1.1 lib/twitch/bot/logger.rb
twitch-bot-2.1.0 lib/twitch/bot/logger.rb