Class: Tapp::Printer::LoggerPretty
- Inherits:
-
Base
- Object
- Base
- Tapp::Printer::LoggerPretty
- Defined in:
- lib/tapp/printer/logger_pretty.rb
Instance Method Summary collapse
Instance Method Details
#print(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/tapp/printer/logger_pretty.rb', line 5 def print(*args) require 'pp' self.class.class_eval do remove_method :print def print(*args) Tappow.logger.send(Tappow.log_level, args[0].pretty_inspect) end end print(*args) end |