Module: Wallaby::Logger
- Defined in:
- lib/wallaby/logger.rb
Overview
Custom logger
Class Method Summary collapse
Class Method Details
.hint(key, message_or_config, replacements = {}) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/wallaby/logger.rb', line 27 def hint(key, , replacements = {}) @hint ||= {} return @hint[key] = false if == false return if @hint[key] == false || !.is_a?(String) = <<~MESSAGE #{} This kind of debug message can be disabled in `config/initializers/wallaby.rb`: Wallaby::Logger.hint(#{key.inspect}, false) if Wallaby::Logger.debug? MESSAGE debug(, replacements.merge(sourcing: false)) end |