Class: Vedeu::API::Log
- Inherits:
-
Object
- Object
- Vedeu::API::Log
- Defined in:
- lib/vedeu/api/log.rb
Class Method Summary collapse
Class Method Details
.error(exception) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/vedeu/api/log.rb', line 14 def self.error(exception) backtrace = exception.backtrace.join("\n") = exception. + "\n" + backtrace logger.debug() end |
.logger ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/vedeu/api/log.rb', line 6 def self.logger @logger ||= Logger.new(filename).tap do |log| log.formatter = proc do |_, time, _, | time.utc.iso8601 + ": " + + "\n" end end end |