lib/telemetry/logger.rb in telemetry-logger-0.1.1 vs lib/telemetry/logger.rb in telemetry-logger-0.2.0
- old
+ new
@@ -1,17 +1,20 @@
require 'telemetry/logger/version'
require 'telemetry/logger/defaults'
require 'telemetry/logger/builder'
require 'telemetry/logger/methods'
+require 'telemetry/logger/exception_handler'
module Telemetry
module Logger
class << self
include Telemetry::Logger::Defaults
include Telemetry::Logger::Methods
include Telemetry::Logger::Builder
+ include Telemetry::Logger::ExceptionHandler
def setup(level: 'info', **opts)
+ @opts = opts
output(**opts)
self.log_level = level
self
end
end