Class: FuzzyNotes::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzzy_notes/logger.rb

Constant Summary collapse

LOG_LEVEL =
1

Class Method Summary collapse

Class Method Details

.init_log(log_level, color) ⇒ Object



8
9
10
11
# File 'lib/fuzzy_notes/logger.rb', line 8

def self.init_log(log_level, color)
  @log = BufferedLogger.new(STDOUT, log_level || LOG_LEVEL, default_format)
  log.disable_color unless color
end

.logObject



13
14
15
# File 'lib/fuzzy_notes/logger.rb', line 13

def self.log
  @log ||=  BufferedLogger.new(STDOUT, LOG_LEVEL, default_format) 
end