Sha256: fcbe0aacf51b9217052613a1c4a8c78893b3271608d9e74fa077049095ccc2a9
Contents?: true
Size: 681 Bytes
Versions: 6
Compression:
Stored size: 681 Bytes
Contents
require 'logger' module Logging attr_accessor :logger, :current_log_device def initialize create_logger(STDOUT, Logger::INFO) super() end def log_device=(logdev) level = @logger.level create_logger(logdev, level) end def log_level=(level) if (level == :verbose) loglevel = Logger::DEBUG else loglevel = Logger::INFO end create_logger(@current_log_device, loglevel) end def create_logger(device, level) @current_log_device = device @logger = Logger.new(device) level = Logger::DEBUG if Albacore::log_level == :verbose @logger.level = level end end
Version data entries
6 entries across 6 versions & 1 rubygems