Method: Code0::ZeroTrack::Context.log_key

Defined in:
lib/code0/zero_track/context.rb

.log_key(key) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/code0/zero_track/context.rb', line 41

def log_key(key)
  key = key.to_s
  return key if RAW_KEYS.include?(key)
  return key if key.start_with?("#{LOG_KEY}.")

  "#{LOG_KEY}.#{key}"
end