Class: Proxy::Dynflow::Log::ProxyStructuredFormater
- Inherits:
-
Dynflow::LoggerAdapters::Formatters::Abstract
- Object
- Dynflow::LoggerAdapters::Formatters::Abstract
- Proxy::Dynflow::Log::ProxyStructuredFormater
- Defined in:
- lib/smart_proxy_dynflow/log.rb
Instance Method Summary collapse
Instance Method Details
#format(message) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/smart_proxy_dynflow/log.rb', line 28 def format() if .is_a?(Exception) subject = "#{.} (#{.class})" if @base.respond_to?(:exception) @base.exception("Error details", ) subject else "#{subject}\n#{.backtrace.join("\n")}" end else @original_formatter.call(severity, datetime, prog_name, ) end end |