Class: SmartProxyDynflowCore::Log::ProxyStructuredFormater
- Inherits:
-
Dynflow::LoggerAdapters::Formatters::Abstract
- Object
- Dynflow::LoggerAdapters::Formatters::Abstract
- SmartProxyDynflowCore::Log::ProxyStructuredFormater
- Defined in:
- lib/smart_proxy_dynflow_core/log.rb
Instance Method Summary collapse
Instance Method Details
#call(_severity, _datetime, _prog_name, message) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/smart_proxy_dynflow_core/log.rb', line 57 def call(_severity, _datetime, _prog_name, ) if ::Exception === subject = "#{message.message} (#{message.class})" if @base.respond_to?(:exception) @base.exception("Error details", ) subject else "#{subject}\n#{message.backtrace.join("\n")}" end else end end |
#format(message) ⇒ Object
71 72 73 |
# File 'lib/smart_proxy_dynflow_core/log.rb', line 71 def format() call(nil, nil, nil, ) end |