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.



18
19
20
# File 'lib/elastic_apm/logging.rb', line 18

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.



30
31
32
# File 'lib/elastic_apm/logging.rb', line 30

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.



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

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.



22
23
24
# File 'lib/elastic_apm/logging.rb', line 22

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.



26
27
28
# File 'lib/elastic_apm/logging.rb', line 26

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