Module: Datadog::CI::Contrib::SemanticLogger::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/ci/contrib/semantic_logger/patcher.rb
Overview
Patcher enables patching of semantic_logger module
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.datadog_logs_component ⇒ Object
25 26 27 |
# File 'lib/datadog/ci/contrib/semantic_logger/patcher.rb', line 25 def datadog_logs_component Datadog.send(:components).agentless_logs_submission end |
.patch ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/datadog/ci/contrib/semantic_logger/patcher.rb', line 16 def patch unless datadog_logs_component.enabled Datadog.logger.debug("Datadog logs submission is disabled, skipping semantic_logger patching") return end ::SemanticLogger::Logger.include(Logger) end |