class TCellAgent::RubyLogger
NOTE: since the agent waits until native agent is available, this is only used in errors throwned while the agent is instrumenting or starting up so it's ok to send those to STDOUT always
Public Class Methods
new()
click to toggle source
# File lib/tcell_agent/logger.rb, line 39 def initialize @logger = Logger.new(STDOUT) # rubocop:disable Style/GlobalStdStream end
Public Instance Methods
exception(module_name, exception)
click to toggle source
# File lib/tcell_agent/logger.rb, line 43 def exception(module_name, exception) @logger.debug("#{module_name} #{exception.backtrace.join("\n")}") end