lib/instana/base.rb in instana-0.10.1 vs lib/instana/base.rb in instana-0.11.0
- old
+ new
@@ -1,7 +1,7 @@
-require 'logger'
require "instana/version"
+require 'instana/logger'
require "instana/util"
module Instana
class << self
attr_accessor :agent
@@ -17,10 +17,10 @@
#
# Setup the Instana language agent to an informal "ready
# to run" state.
#
def setup
- @logger = Logger.new(STDOUT)
+ @logger = ::Instana::XLogger.new(STDOUT)
if ENV.key?('INSTANA_GEM_TEST') || ENV.key?('INSTANA_GEM_DEV')
@logger.level = Logger::DEBUG
else
@logger.level = Logger::WARN
end