Module: Aspector::Logging
- Defined in:
- lib/aspector/logging.rb
Constant Summary collapse
- NONE =
Log levels
10000
- ERROR =
50
- WARN =
40
- INFO =
30
- DEBUG =
20
- TRACE =
10
- DEFAULT_VISIBLE_LEVEL =
INFO
Class Method Summary collapse
Class Method Details
.get_logger(context) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/aspector/logging.rb', line 13 def self.get_logger context if logger_class_name = ENV["ASPECTOR_LOGGER"] begin logger_class = constanize(logger_class_name) logger_class.new(context) rescue => e $stderr.puts e. Logger.new(context) end else Logger.new(context) end end |