Class: ConfigLogic::Log
- Inherits:
-
Object
- Object
- ConfigLogic::Log
- Defined in:
- lib/config_logic/logger.rb
Constant Summary collapse
- LOG_LEVEL =
6
Class Method Summary collapse
Class Method Details
.init_log(log_level, color) ⇒ Object
7 8 9 10 |
# File 'lib/config_logic/logger.rb', line 7 def self.init_log(log_level, color) @log = BufferedLogger.new(STDOUT, log_level || LOG_LEVEL, default_format) log.disable_color unless color end |
.log ⇒ Object
12 13 14 |
# File 'lib/config_logic/logger.rb', line 12 def self.log @log ||= BufferedLogger.new(STDOUT, LOG_LEVEL, default_format) end |