lib/fusuma/multi_logger.rb in fusuma-0.2.5 vs lib/fusuma/multi_logger.rb in fusuma-0.2.6
- old
+ new
@@ -3,16 +3,18 @@
require 'logger'
require 'singleton'
# logger separate between stdout and strerr
class MultiLogger < Logger
include Singleton
+
+ attr_reader :err_logger
+ attr_accessor :debug_mode
+
def initialize
super(STDOUT)
@err_logger = Logger.new(STDERR)
@debug_mode = false
end
- attr_reader :err_logger
- attr_accessor :debug_mode
def info(msg)
return unless debug_mode?
super(msg)
end