Sha256: 6ca56218a244047c9f0bec5b6800fcd182a5b200a273ff8261ff52702e40bb24
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/logger/log' require 'contrast/components/base' module Contrast module Components module Logger # :nodoc: module InstanceMethods # :nodoc: def logger Contrast::Logger::Log.instance.logger end def add_trace_perf_logging_for sym, custom_message = nil logger.add_trace_perf_logging(self, sym, custom_message) end end class << self def add_trace_log_timing_for clazz, method_name, custom_message = nil Contrast::Logger::Log.instance.add_method_to_trace_timing(clazz, method_name, custom_message) end end class Interface include InstanceMethods end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-5.1.0 | lib/contrast/components/logger.rb |
contrast-agent-5.0.0 | lib/contrast/components/logger.rb |