Proper appending of logging.write scope to array