lib/contrast/logger/log.rb in contrast-agent-3.13.2 vs lib/contrast/logger/log.rb in contrast-agent-3.14.0
- old
+ new
@@ -1,17 +1,18 @@
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
-cs__scoped_require 'logger'
-cs__scoped_require 'ougai'
-cs__scoped_require 'singleton'
+require 'logger'
+require 'ougai'
+require 'singleton'
-cs__scoped_require 'contrast/components/interface'
-cs__scoped_require 'contrast/extension/module'
-cs__scoped_require 'contrast/logger/application'
-cs__scoped_require 'contrast/logger/format'
-cs__scoped_require 'contrast/logger/time'
+require 'contrast/components/interface'
+require 'contrast/extension/module'
+require 'contrast/logger/application'
+require 'contrast/logger/format'
+require 'contrast/logger/request'
+require 'contrast/logger/time'
module Contrast
module Logger
# This class functions to serve as a wrapper around our logging, as we need
# to be able to dynamically update level based on updates to TeamServer.
@@ -96,9 +97,10 @@
logger
end
def add_contrast_loggers logger
logger.extend(Contrast::Logger::Application)
+ logger.extend(Contrast::Logger::Request)
logger.extend(Contrast::Logger::Time)
end
def valid_path path
path = path.nil? ? Contrast::Utils::ObjectShare::EMPTY_STRING : path