Fixes to incorrect use of non-local log instance. Improvement to infer an empty binding key if none are provided.