Module: ElasticAPM::Logging Private

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Constant Summary collapse

PREFIX =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'[ElasticAPM] '
LEVELS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  debug: Logger::DEBUG,
  info: Logger::INFO,
  warn: Logger::WARN,
  error: Logger::ERROR,
  fatal: Logger::FATAL
}.freeze

Instance Method Summary collapse

Instance Method Details

#debug(msg, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



33
34
35
# File 'lib/elastic_apm/logging.rb', line 33

def debug(msg, *args, &block)
  log(:debug, msg, *args, &block)
end

#error(msg, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



45
46
47
# File 'lib/elastic_apm/logging.rb', line 45

def error(msg, *args, &block)
  log(:error, msg, *args, &block)
end

#fatal(msg, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



49
50
51
# File 'lib/elastic_apm/logging.rb', line 49

def fatal(msg, *args, &block)
  log(:fatal, msg, *args, &block)
end

#info(msg, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
# File 'lib/elastic_apm/logging.rb', line 37

def info(msg, *args, &block)
  log(:info, msg, *args, &block)
end

#warn(msg, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



41
42
43
# File 'lib/elastic_apm/logging.rb', line 41

def warn(msg, *args, &block)
  log(:warn, msg, *args, &block)
end