Logging for element look up matching

Please merge.