lib/opentelemetry.rb in opentelemetry-api-1.0.2 vs lib/opentelemetry.rb in opentelemetry-api-1.1.0
- old
+ new
@@ -26,10 +26,10 @@
attr_writer :propagation, :logger, :error_handler
# @return [Object, Logger] configured Logger or a default STDOUT Logger.
def logger
- @logger ||= Logger.new(STDOUT, level: ENV['OTEL_LOG_LEVEL'] || Logger::INFO)
+ @logger ||= Logger.new($stdout, level: ENV['OTEL_LOG_LEVEL'] || Logger::INFO)
end
# @return [Callable] configured error handler or a default that logs the
# exception and message at ERROR level.
def error_handler