Logs a meta data value with a specified key if the system is in test mode.
The key associated with the value to log.
The string value to log.