Class: Vedeu::Instrumentation::Log
- Inherits:
-
Object
- Object
- Vedeu::Instrumentation::Log
- Defined in:
- lib/vedeu/instrumentation.rb
Overview
:nocov:
Class Method Summary collapse
Class Method Details
.error(exception) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/vedeu/instrumentation.rb', line 19 def self.error(exception) backtrace = exception.backtrace.join("\n") = exception. + "\n" + backtrace logger.debug() end |
.logger ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/vedeu/instrumentation.rb', line 11 def self.logger @logger ||= Logger.new(filename).tap do |log| log.formatter = proc do |_, time, _, | time.utc.iso8601 + ": " + + "\n" end end end |