Class: BinProxy::Logger::BPLogger
- Inherits:
-
BinProxy::Logger
- Object
- BinProxy::Logger
- BinProxy::Logger::BPLogger
- Defined in:
- lib/binproxy/logger.rb
Instance Method Summary collapse
Methods included from BinProxy::Logger
Instance Method Details
#err_trace(e, context = nil, level = Logger::ERROR) ⇒ Object
5 6 7 8 |
# File 'lib/binproxy/logger.rb', line 5 def err_trace(e, context = nil, level = Logger::ERROR) add level, "Error while #{context}:" if context add level, "#{e.class}: #{e.}\n#{(e.backtrace - caller).join "\n"}" end |