Module: LoggerObserver
- Included in:
- Logger
- Defined in:
- lib/logger_observer.rb
Instance Method Summary collapse
Instance Method Details
#update(*args, &block) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/logger_observer.rb', line 13 def update(*args, &block) severity = UNKNOWN if args.size > 0 (severity = Severity.cons_get(args[0].to_s.upcase)) rescue NameError end add(severity, "#{args.inspect} #{block.inspect if block}", $PROGRAME_NAME) end |