Class: SimpleLogger::Logger

Inherits:
Plain
  • Object
show all
Defined in:
lib/simple-logger/logger.rb

Constant Summary

Constants inherited from Plain

Plain::Levels

Instance Attribute Summary

Attributes inherited from Plain

#auto_flush, #buffer, #delimiter, #init_args, #level, #log

Class Method Summary collapse

Methods inherited from Plain

#<<, #close, #flush, #initialize, #set_log

Constructor Details

This class inherits a constructor from SimpleLogger::Plain

Class Method Details

.colorsObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/simple-logger/logger.rb', line 13

def self.colors
  @@colors ||= {
    fatal:  "red.bold",
    error:  "red",
    warn:   "yellow",
    info:   "green",
    debug:  "cyan",
    custom: "magenta"
  }
end