Module: Datadog::Core::Diagnostics::EnvironmentLogging
- Included in:
- EnvironmentLogger, Tracing::Diagnostics::EnvironmentLogger
- Defined in:
- lib/datadog/core/diagnostics/environment_logger.rb
Overview
Base class for EnvironmentLoggers - should allow for easy reporting by users to Datadog support.
Instance Method Summary collapse
Instance Method Details
#log_configuration!(prefix, data) ⇒ Object
12 13 14 |
# File 'lib/datadog/core/diagnostics/environment_logger.rb', line 12 def log_configuration!(prefix, data) logger.info("DATADOG CONFIGURATION - #{prefix} - #{data}") end |
#log_error!(prefix, type, error) ⇒ Object
16 17 18 |
# File 'lib/datadog/core/diagnostics/environment_logger.rb', line 16 def log_error!(prefix, type, error) logger.warn("DATADOG ERROR - #{prefix} - #{type}: #{error}") end |